Inheritance: IStringResources
Esempio n. 1
0
        public void FirstTimeTest()
        {
            // Arrange
            var resources     = new TestStringResources();
            var keyValueStore = new TestKeyValueStore();

            // Act
            var underTest = new MainVM(resources, keyValueStore);

            // Assert
            Assert.AreEqual(resources.Welcome, underTest.Message);
            Assert.IsFalse(keyValueStore.GetValue("FirstTime", true));
        }
Esempio n. 2
0
        public void FirstTimeTest()
        {
            // Arrange
            var resources = new TestStringResources();
            var keyValueStore = new TestKeyValueStore();

            // Act
            var underTest = new MainVM(resources, keyValueStore);

            // Assert
            Assert.AreEqual(resources.Welcome, underTest.Message);
            Assert.IsFalse(keyValueStore.GetValue("FirstTime", true));
        }