ShowForTestCode() публичный Метод

public ShowForTestCode ( string example ) : string
example string
Результат string
Пример #1
0
        public void Invoke()
        {
            if (!IsRunning)
            {
                var window = new TestCodeWindow();
                window.Owner = Application.Current.MainWindow;
                string testCode = window.ShowForTestCode(ExampleCode);
                if (testCode == null)
                {
                    return;
                }

                IsRunning = true;
                OnToggled(new InstantToggleEventArgs(View, MethodSpan, testCode));
            }
            else
            {
                IsRunning = false;
                OnToggled(new InstantToggleEventArgs(View, MethodSpan));
            }
        }
Пример #2
0
        public void Invoke()
        {
            if (!IsRunning)
            {
                var window = new TestCodeWindow();
                window.Owner = Application.Current.MainWindow;
                string testCode = window.ShowForTestCode (ExampleCode);
                if (testCode == null)
                    return;

                IsRunning = true;
                OnToggled (new InstantToggleEventArgs (View, MethodSpan, testCode));
            }
            else
            {
                IsRunning = false;
                OnToggled (new InstantToggleEventArgs (View, MethodSpan));
            }
        }