Exemplo n.º 1
0
        public async Task IsRealAsync_ShouldReturnTypeOfBool()
        {
            var testEgn = "8810120964";

            var checkEgnService = new CheckEgnService();

            var sut = checkEgnService.IsValidEgn(testEgn);

            Assert.IsInstanceOfType(sut, typeof(bool));
        }
Exemplo n.º 2
0
        public async Task IsRealAsync_ShouldReturn_False()
        {
            var testEgn = "1010120964";

            var checkEgnService = new CheckEgnService();

            var sut = checkEgnService.IsValidEgn(testEgn);

            var expectedResult = false;

            Assert.AreEqual(expectedResult, sut);
        }
Exemplo n.º 3
0
        public async Task IsRealAsync_ShouldReturn_True()
        {
            //Mock
            var testEgn = "8810120964";

            var checkEgnService = new CheckEgnService();

            var sut = checkEgnService.IsValidEgn(testEgn);

            var expectedResult = true;

            Assert.AreEqual(expectedResult, sut);
        }