public void SetsTheEnvironmentNameAsExpected()
        {
            var expected = "MyEnvironment";

            var target = new DefaultHostingEnvironmentBuilder();

            target.SetEnvironmentName(expected);

            var result = target.Build();

            Assert.AreEqual(expected, result.EnvironmentName);
        }
        public void ThrowsAnExceptionWhenTheEnvironmentNameIsNull()
        {
            var target = new DefaultHostingEnvironmentBuilder();

            Assert.Throws <ArgumentNullException>(() => target.SetEnvironmentName(null));
        }