Ejemplo n.º 1
0
        public void DoesntGetNonExistingEnvironmentVariable()
        {
            var    sut = new InMemorySettingsSource(settings);
            string value;
            var    found = sut.TryGetRawSetting("ThisKeyDoesNotExist", out value);

            Assert.False(found, "Strangely, a non existing key was found");
        }
Ejemplo n.º 2
0
        public void GetsExistingEnvironmentVariable()
        {
            var    sut = new InMemorySettingsSource(settings);
            string value;
            var    found = sut.TryGetRawSetting("SomeKey", out value);

            Assert.True(found, "SomeKey was not found");
            Assert.Equal("Some value", value);
        }