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

            //Act: Call the method
            string actual = test.TakeTwoFromPosition(str, n);

            //Assert
            Assert.AreEqual(expectedResult, actual);
        }