Пример #1
0
 public void HasBad(string str, bool expected)
 {
     //arrange
     Strings obj = new Strings();
     //act
     bool actual = obj.HasBad(str);
     //assert
     Assert.AreEqual(expected, actual);
 }
Пример #2
0
        public void HasBad(string str, bool expectedResult)
        {
            //Arrange: get your target
            Strings test = new Strings();

            //Act: Call the method
            bool actual = test.HasBad(str);

            //Assert
            Assert.AreEqual(expectedResult, actual);
        }
Пример #3
0
 public void HasBad(string a, bool expResult)
 {
     Strings obj = new Strings();
     bool actual = obj.HasBad(a);
     Assert.AreEqual(actual, expResult);
 }
Пример #4
0
        public void HasBad(string str, bool expected)
        {
            Strings obj = new Strings();

            bool actual = obj.HasBad(str);

            Assert.AreEqual(expected, actual);
        }