コード例 #1
0
        public void Test1()
        {
            var a1 = new[] { "arp", "live", "strong" };
            var a2 = new[] { "lively", "alive", "harp", "sharp", "armstrong" };
            var r  = new[] { "arp", "live", "strong" };

            var a3 = new[] { "tarp", "mice", "bull" };
            var a4 = new[] { "lively", "alive", "harp", "sharp", "armstrong" };
            var r2 = new string[0];

            Assert.AreEqual(r, WhichAreIn.InArray(a1, a2));
            Assert.AreEqual(r2, WhichAreIn.InArray(a3, a4));
        }
コード例 #2
0
 public void TearDown()
 {
     _whichAreIn = null;
 }
コード例 #3
0
 public void SetUp()
 {
     _whichAreIn = new WhichAreIn();
 }