Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I am able to get the answer, but I am getting a result with a message: Test: ` ClassifiedAd ` class test Reason: Unable to
I am able to get the answer, but I am getting a result with a message:
Test: ClassifiedAd class test
Reason: Unable to run tests.
Error : str AssertionError
Can some one assist me please.
using System;
using static System.Console;
using System.Globalization;
class TestClassifiedAd
static void Main
ClassifiedAd adC new ClassifiedAd;
adCCategory "Used Cars";
adCNumWords ;
ClassifiedAd adH new ClassifiedAd;
adHCategory "Help Wanted";
adHNumWords ;
WriteLineThe classified ad with words in category costs adCNumWords, adCCategory, adCPrice.ToStringC CultureInfo.GetCultureInfoenUS;
WriteLineThe classified ad with words in category costs adHNumWords, adHCategory, adHPrice.ToStringC CultureInfo.GetCultureInfoenUS;
public class ClassifiedAd
public string Category get; set;
public int NumWords get; set;
public double Price
get return NumWords ;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started