예제 #1
0
        public void SecondTest()
        {
            string a = "abcde";

            Assert.AreEqual(5, Kata.GetLength(a));
        }
예제 #2
0
        public void ThirdTest()
        {
            object a = new { Length = 5, Width = 2 };

            Assert.AreEqual(5, Kata.GetLength(a));
        }
예제 #3
0
 public void SampleTest()
 {
     Assert.AreEqual("Fail!", Kata.Well(new string[] { "bad", "bad", "bad" }));
     Assert.AreEqual("Publish!", Kata.Well(new string[] { "good", "bad", "bad", "bad", "bad" }));
     Assert.AreEqual("I smell a series!", Kata.Well(new string[] { "good", "bad", "bad", "bad", "bad", "good", "bad", "bad", "good" }));
 }
예제 #4
0
 public void FirstTest()
 {
     int[] a = new int[] { 1, 2, 3, 4, 5 };
     Assert.AreEqual(5, Kata.GetLength(a));
 }
예제 #5
0
 public void Over50()
 {
     Assert.AreEqual(60, Kata.AddStrings("20, 20, 20"));
 }
예제 #6
0
 public bool SampleTest(int n) => Kata.IsPrime(n);
예제 #7
0
 public void Example()
 {
     Assert.AreEqual("sihT si na !elpmaxe", Kata.ReverseWords("This is an example!"));
 }
 public void BasicTests()
 {
     Assert.AreEqual(6, Kata.Grow(new [] { 1, 2, 3 }));
     Assert.AreEqual(16, Kata.Grow(new [] { 4, 1, 1, 1, 4 }));
     Assert.AreEqual(64, Kata.Grow(new [] { 2, 2, 2, 2, 2, 2 }));
 }
예제 #9
0
 public void BasicTest()
 {
     Assert.AreEqual(true, Kata.OnlyOne(true, false));
 }
 public string Test(string s) = > Kata.High(s);
예제 #11
0
파일: fixtures.cs 프로젝트: MarcusDLG/Katas
 public void Test()
 {
     Assert.AreEqual("Venus", Kata.GetPlanetName(2));
     Assert.AreEqual("Jupiter", Kata.GetPlanetName(5));
 }
예제 #12
0
 public void SampleTest()
 {
     Assert.AreEqual("It's hotter than the sun!!", Kata.Apple("50"));
     Assert.AreEqual("Help yourself to a honeycomb Yorkie for the glovebox.", Kata.Apple(4));
 }
예제 #13
0
 public int SampleTest(string str)
 {
     return(Kata.GetLongestPalindrome(str));
 }
 public void NoGoals()
 {
     Assert.AreEqual(Kata.GetGoals(0, 0, 0), 0);
 }
예제 #15
0
 public void LessThan10()
 {
     Assert.AreEqual(5, Kata.AddStrings("2, 3"));
 }
 public void FiftyEightGoals()
 {
     Assert.AreEqual(Kata.GetGoals(43, 10, 5), 58);
 }
예제 #17
0
 public void BasicTests()
 {
     Assert.AreEqual("a", Kata.FirstNonRepeatingLetter("a"));
     Assert.AreEqual("t", Kata.FirstNonRepeatingLetter("stress"));
     Assert.AreEqual("e", Kata.FirstNonRepeatingLetter("moonmen"));
 }