12345678910111213141516171819202122232425 |
- using Microsoft.VisualStudio.TestTools.UnitTesting;
- using Exam;
- namespace ExamTest
- {
- [TestClass]
- public class UnitTest1
- {
- [TestMethod]
- public void TestMethod1()
- {
- Percent percent = new Percent(10);
- percent.Raise();
- Assert.AreEqual(0.015, percent.Value);
- }
- [TestMethod]
- public void TestMethod2()
- {
- Deposit deposit = new Deposit(10);
- deposit.Income();
- Assert.AreEqual(10.1, deposit.Value);
- }
- }
- }
|