コード例 #1
0
ファイル: ConditionalTests.cs プロジェクト: RingoKam/swcguild
        public void EveryNthtest(string str, int n, string expected)
        {
            Conditionals test   = new Conditionals();
            string       actual = test.EveryNth(str, n);

            Assert.AreEqual(expected, actual);
        }
コード例 #2
0
        public void EveryNth(string a, int b, string expected)
        {
            // arrange
            Conditionals obj = new Conditionals();

            // act
            string actual = obj.EveryNth(a, b);

            // assert
            Assert.AreEqual(expected, actual);
        }
コード例 #3
0
        public void EveryNthTest(string s, int n, string expected)
        {
            var actual = _conditionals.EveryNth(s, n);

            Assert.AreEqual(expected, actual);
        }
コード例 #4
0
        public void EveryNthTest(string s, int n, string expected)
        {
            string actual = obj.EveryNth(s, n);

            Assert.AreEqual(expected, actual);
        }