コード例 #1
0
        public void TestMethod4()
        {
            //Arrange
            var s1       = "Mister";
            var s2       = "Mystery";
            var expected = false;

            //Act
            var solver = new AreAnagrams();
            var res    = solver.Solution(s1, s2);

            //Assert
            Assert.AreEqual(expected, res);
        }
コード例 #2
0
        public void TestMethod1()
        {
            //Arrange
            var s1       = "abcd";
            var s2       = "dcba";
            var expected = true;

            //Act
            var solver = new AreAnagrams();
            var res    = solver.Solution(s1, s2);

            //Assert
            Assert.AreEqual(expected, res);
        }
コード例 #3
0
        public void TestMethod2()
        {
            //Arrange
            var s1       = "Listen";
            var s2       = "Silent";
            var expected = true;

            //Act
            var solver = new AreAnagrams();
            var res    = solver.Solution(s1, s2);

            //Assert
            Assert.AreEqual(expected, res);
        }