123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using NumberDLL;
- namespace Testing
- {
- [TestClass]
- public class Test
- {
- [TestMethod]
- public void AreEqual12345()
- {
- MethodClass obj = new MethodClass();
- int numb = 12345;
- int rez = 54321;
- int fact = obj.Razryad( numb);
- Assert.AreEqual(rez, fact);
- }
- [TestMethod]
- public void AreNotEqual159232()
- {
- MethodClass obj = new MethodClass();
- int numb = 59232;
- int rez = 23295;
- int fact = obj.Razryad( numb);
- Assert.AreEqual(rez, fact);
- }
- [TestMethod]
- public void IsTrue6520222()
- {
- MethodClass obj = new MethodClass();
- int numb = 6520222;
- int rez = 2220256;
- int fact = obj.Razryad( numb);
- Assert.IsTrue(rez == fact);
- }
- [TestMethod]
- public void IsFalse98632423()
- {
- MethodClass obj = new MethodClass();
- int numb = 98632423;
- int rez = 10;
- int fact = obj.Razryad( numb);
- Assert.IsFalse(rez == fact);
- }
- }
- }
|