public void ConfigureWithNullRaisesException()
        {
            // --- Arrange
            EnvironmentInfo.Reset();

            // --- Act
            EnvironmentInfo.Configure(null);
        }
        public void ConfigureWorksAsExpected()
        {
            // --- Arrange
            EnvironmentInfo.Reset();

            // --- Act
            EnvironmentInfo.Configure(new MockEnvironpentInfoProvider());
            var utcNow      = EnvironmentInfo.GetCurrentDateTimeUtc();
            var machineName = EnvironmentInfo.GetMachineName();

            // --- Assert
            EnvironmentInfo.Provider.ShouldBeOfType(typeof(MockEnvironpentInfoProvider));
            utcNow.ShouldEqual(new DateTime(2012, 1, 1, 0, 0, 0, DateTimeKind.Utc));
            machineName.ShouldEqual("DummyMachine");
        }