Beispiel #1
0
        public void FourthTest()
        {
            dynamic a = new ExpandoObject();

            a.Length = 5;
            Assert.AreEqual(5, Kata.GetLength(a));
        }
Beispiel #2
0
        public void SecondTest()
        {
            string a = "abcde";

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

            Assert.AreEqual(5, Kata.GetLength(a));
        }
Beispiel #4
0
 public void FirstTest()
 {
     int[] a = new int[] { 1, 2, 3, 4, 5 };
     Assert.AreEqual(5, Kata.GetLength(a));
 }