Пример #1
0
        public void New_AppMode_Should_Be_Debugging()
        {
            // Arrange
            AvailableMode mode = AvailableMode.Debug;

            // Act
            AppMode appMode = new AppMode(mode);

            // Assert

            Assert.True(appMode.IsDebugging);
            Assert.Equal(AvailableMode.Debug, appMode);
            Assert.Equal("Debug", appMode.ToString());
        }
Пример #2
0
 public AppMode(AvailableMode mode = AvailableMode.Debug)
 {
     _currentMode = mode;
 }