コード例 #1
0
        public void EndsWithLy(string str, bool expected)
        {
            Strings obj = new Strings();

            bool actual = obj.EndsWithLy(str);

            Assert.AreEqual(expected, actual);
        }
コード例 #2
0
ファイル: StringTests.cs プロジェクト: Heather4/swcguild
 public void EndsWithLy(string str, bool expected)
 {
     //arrange
     Strings obj = new Strings();
     //act
     bool actual = obj.EndsWithLy(str);
     //assert
     Assert.AreEqual(expected, actual);
 }
コード例 #3
0
ファイル: StringTests.cs プロジェクト: RingoKam/swcguild
        public void EndsWithLy(string str, bool expectedResult)
        {
            //arrange: get your target class
            Strings test = new Strings();

            //Act : call the method you want to test
            bool actual = test.EndsWithLy(str);

            //Assert: assess target
            Assert.AreEqual(expectedResult, actual);
        }
コード例 #4
0
ファイル: StringTests.cs プロジェクト: dimitre613/swcguild
 public void EndsWithLy(string a, bool expResult)
 {
     Strings obj = new Strings();
     bool actual = obj.EndsWithLy(a);
     Assert.AreEqual(actual, expResult);
 }