コード例 #1
0
		/// <summary>
		/// Tests to ensure that we get null instead of an exception if the key doesn't exist.
		/// </summary>
		public void ReturnNullGivenKeyDoesNotExist()
		{
			// Arrange

			// Act
			var exampleConfigurationSetting = new ExampleConfigurationSetting("SomeKeyThatShouldNeverBe");

			// Assert
			Assert.True(exampleConfigurationSetting.Value.IsNull());
		}
コード例 #2
0
        /// <summary>
        /// Tests to ensure that we get null instead of an exception if the key doesn't exist.
        /// </summary>
        public void ReturnNullGivenKeyDoesNotExist()
        {
            // Arrange

            // Act
            var exampleConfigurationSetting = new ExampleConfigurationSetting("SomeKeyThatShouldNeverBe");

            // Assert
            Assert.True(exampleConfigurationSetting.Value.IsNull());
        }
コード例 #3
0
		public void ReturnValueGivenNoLocationSpecificValueExists()
		{
			// Arrange

			// Act
			var exampleConfigurationSetting = new ExampleConfigurationSetting("UnitTestPlain");

			// Assert
			Assert.True(exampleConfigurationSetting.Value.Equals("UnitTestPlain.VALUE"));
		}
コード例 #4
0
        public void ReturnValueGivenNoLocationSpecificValueExists()
        {
            // Arrange

            // Act
            var exampleConfigurationSetting = new ExampleConfigurationSetting("UnitTestPlain");

            // Assert
            Assert.True(exampleConfigurationSetting.Value.Equals("UnitTestPlain.VALUE"));
        }