1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- using RasradDll;
- namespace TestRasradDll
- {
- [TestClass]
- public class TestRasrad
- {
- /// <summary>
- /// Ïðîâåðêà ôóíêöèè GetReversRasrad
- /// </summary>
- [TestMethod]
- public void GetReversRasrad_nubmer123456789ToList_returnList123456789()
- {
- int n = 123456789;
- double expected = 987654321;
- Rasrad rasrad = new Rasrad();
- double result = rasrad.GetReversRasrad(n);
- Assert.AreEqual(expected, result);
- }
- /// <summary>
- /// Ïðîâåðêà ôóíêöèè GetReversRasrad
- /// </summary>
- [TestMethod]
- public void GetReversRasrad_nubmer567382ToList_returnList283765()
- {
- int n = 567382;
- double expected = 283765;
- Rasrad rasrad = new Rasrad();
- double result = rasrad.GetReversRasrad(n);
- Assert.AreEqual(expected, result);
- }
- /// <summary>
- /// Ïðîâåðêà ôóíêöèè GetList
- /// </summary>
- [TestMethod]
- public void GetList_nubmer1234ToList_returnList1234()
- {
- int n = 1234;
- List<int> expected = new List<int> { 4, 3, 2, 1 };
- Rasrad rasrad = new Rasrad();
- List<int> result = rasrad.GetList(n);
- CollectionAssert.AreEqual(expected, result);
- }
- /// <summary>
- /// Ïðîâåðêà ôóíêöèè GetList
- /// </summary>
- [TestMethod]
- public void GetList_nubmer1111ToList_returnList1111()
- {
- int n = 1111;
- List<int> expected = new List<int> { 1, 1, 1, 1 };
- Rasrad rasrad = new Rasrad();
- List<int> result = rasrad.GetList(n);
- CollectionAssert.AreEqual(expected, result);
- }
- }
- }
|