예제 #1
0
        public void SetPropertyWithConstructor_StoresWords_()
        {
            ReplaceWords testCase = new ReplaceWords("word", "this is a sentence", "dog");

            //Works. Also returns the correct full sentence string
            //Assert.AreEqual("this is a sentence", testCase.GetSentence());
            Assert.AreEqual(typeof(ReplaceWords), testCase.GetType());
        }
예제 #2
0
        public void SetProperty_StoresWords_True()
        {
            ReplaceWords testSentence = new ReplaceWords("this is a test sentence.");

            Assert.AreEqual(typeof(ReplaceWords), testSentence.GetType());
        }