Exemplo n.º 1
0
        public void NoSharedStateDoesNotThrow()
        {
            var testClass = new ActionTestClass();

            Assert.True(testClass is IReactiveObject);
            string expected = "Lisa";

            testClass.SetName(expected);
            Assert.Equal(expected, testClass.Name);
            testClass.SetNameToJohn();
            Assert.Equal("John", testClass.Name);
        }
Exemplo n.º 2
0
        public void ExecuteTests()
        {
            var testClass = new ActionTestClass();

            Assert.True(testClass is IReactiveObject);
            string expected = "Lisa";

            testClass.SetName(expected);
            Assert.Equal(expected, testClass.Name);
            testClass.SetNameToJohn();
            Assert.Equal("John", testClass.Name);
        }