Ejemplo n.º 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());
        }
Ejemplo n.º 2
0
        public void SetProperty_StoresWords_True()
        {
            ReplaceWords testSentence = new ReplaceWords("this is a test sentence.");

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