Microsoft
70-354 · Question #41
You are developing a Universal Windows Platform (UWP) app that manipulates accounts using an Account class. You need to automate tests for the Debit method of the Account class. Complete the code…
The correct answer is A. The complete code should be: ```csharp [TestClass] public class UnitTest1 { [TestMethod] public void TestMethod1() { int expected = 1; int actual = Account.debit(1); Assert.AreEqual(expected, actual, 0.001, "Error Message"); } } ```. See the full explanation below for the reasoning.
Question
You are developing a Universal Windows Platform (UWP) app that manipulates accounts using an
Account class. You need to automate tests for the Debit method of the Account class. Complete the code for the unit test:Options
- AThe complete code should be:
[TestClass] public class UnitTest1 { [TestMethod] public void TestMethod1() { int expected = 1; int actual = Account.debit(1); Assert.AreEqual(expected, actual, 0.001, "Error Message"); } }
How the community answered
(31 responses)- A100% (31)
Community Discussion
No community discussion yet for this question.