Exemple #1
0
        public void SettingsInitializedNull()
        {
            // Act
            var testBundle = new SettingsRootTestBundle();

            // Assert
            Assert.IsNull(testBundle.SettingsRoot.ImageServers);
        }
        public void SettingsInitializedNull()
        {
            // Act
            var testBundle = new SettingsRootTestBundle();

            // Assert
            Assert.IsNull(testBundle.SettingsRoot.ImageServers);
        }
Exemple #3
0
        public void SettingsSetsWorkCorrectly()
        {
            // Arrange
            var testBundle = new SettingsRootTestBundle();

            var mockImageServers = new Mock <ImageServers>();

            // Act
            testBundle.SettingsRoot.ImageServers = mockImageServers.Object;

            // Assert
            Assert.AreSame(mockImageServers.Object, testBundle.SettingsRoot.ImageServers);
        }
        public void SettingsSetsWorkCorrectly()
        {
            // Arrange
            var testBundle = new SettingsRootTestBundle();

            var mockImageServers = new Mock<ImageServers>();

            // Act
            testBundle.SettingsRoot.ImageServers = mockImageServers.Object;

            // Assert
            Assert.AreSame(mockImageServers.Object, testBundle.SettingsRoot.ImageServers);
        }
Exemple #5
0
        public void SettingsConfiguredProperly()
        {
            // Arrange
            var testBundle       = new SettingsRootTestBundle();
            var mockImageServers = new Mock <ImageServers>();

            testBundle.MockServiceLocator.Setup(x => x.ProvideDefaultImageServers()).Returns(mockImageServers.Object);

            // Act
            testBundle.SettingsRoot.PopulateWithDefaults();

            // Assert
            Assert.IsNotNull(testBundle.SettingsRoot.ImageServers);
        }
        public void SettingsConfiguredProperly()
        {
            // Arrange
            var testBundle = new SettingsRootTestBundle();
            var mockImageServers = new Mock<ImageServers>();

            testBundle.MockServiceLocator.Setup(x => x.ProvideDefaultImageServers()).Returns(mockImageServers.Object);

            // Act
            testBundle.SettingsRoot.PopulateWithDefaults();

            // Assert
            Assert.IsNotNull(testBundle.SettingsRoot.ImageServers);
        }