-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDebuggerCommandTest.cs
executable file
·55 lines (46 loc) · 1.46 KB
/
DebuggerCommandTest.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// This file is part of bugreport.
// Copyright (c) 2006-2009 The bugreport Developers.
// See AUTHORS.txt for details.
// Licensed under the GNU General Public License, Version 3 (GPLv3).
// See LICENSE.txt for details.
using System;
using NUnit.Framework;
namespace bugreport
{
[TestFixture]
public class DebuggerCommandTest
{
[Test]
public void IsDisassemble()
{
var command = new DebuggerCommand("disasm");
Assert.IsTrue(command.IsDisassemble);
command = new DebuggerCommand("NOTdisasm");
Assert.IsFalse(command.IsDisassemble);
}
[Test]
public void IsEnter()
{
var command = new DebuggerCommand(String.Empty);
Assert.IsTrue(command.IsEnter);
command = new DebuggerCommand("NOT");
Assert.IsFalse(command.IsEnter);
}
[Test]
public void IsQuit()
{
var command = new DebuggerCommand("q");
Assert.IsTrue(command.IsQuit);
command = new DebuggerCommand("NOTq");
Assert.IsFalse(command.IsQuit);
}
[Test]
public void IsStackPrint()
{
var command = new DebuggerCommand("p");
Assert.IsTrue(command.IsStackPrint);
command = new DebuggerCommand("NOTp");
Assert.IsFalse(command.IsStackPrint);
}
}
}