示例#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);
        }