private void btnDebug_Click(object sender, RoutedEventArgs e) { if (UdpConnect.isRegistered == true) { DebugTest winDebug = new DebugTest(); //winDebug.Show(); winDebug.ShowDialog(); //winDebug.ResizeMode = ResizeMode.NoResize; } }
public void LoggedTypeWithLogDebugWillWriteToLog() { var listener = new TestTraceListener(); listener.ExpectCategory("[DEBUG]"); listener.ExpectOutput("[DEBUG] FluentBoilerplate.Tests.Runtime.Providers.Logging.LogProviderTests+Debug.DebugTest = System.String \"Test Value\""); Trace.Listeners.Add(listener); var instance = new DebugTest { Value = "TestValue" }; this.provider.Debug("Test message", instance); listener.ReadTrace.Should().BeTrue("because we should have received a log message"); }
// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.KeypadPlus)) { currentMode++; if (currentMode == DebugTest.Last) { currentMode = DebugTest.First + 1; } } if (Input.GetKeyDown(KeyCode.KeypadMinus)) { currentMode--; if (currentMode == DebugTest.First) { currentMode = DebugTest.Last - 1; } } }