1
1
using System ;
2
- using Microsoft . VisualStudio . TestTools . UnitTesting ;
2
+ using NUnit . Framework ;
3
3
using Moq ;
4
4
using Rubberduck . Common . Hotkeys ;
5
5
using Rubberduck . Settings ;
6
6
using Rubberduck . UI . Command ;
7
7
8
8
namespace RubberduckTests . Settings
9
9
{
10
- [ TestClass ]
10
+ [ TestFixture ]
11
11
public class HotkeyFactoryTests
12
12
{
13
- [ TestMethod ]
13
+ [ Test ]
14
14
public void CreatingHotkeyReturnsNullWhenNoSettingProvided ( )
15
15
{
16
16
var factory = new HotkeyFactory ( null ) ;
@@ -20,7 +20,7 @@ public void CreatingHotkeyReturnsNullWhenNoSettingProvided()
20
20
Assert . IsNull ( hotkey ) ;
21
21
}
22
22
23
- [ TestMethod ]
23
+ [ Test ]
24
24
public void CreatingHotkeyReturnsNullWhenNoMatchingCommandExists ( )
25
25
{
26
26
var mockCommand = new Mock < CommandBase > ( null ) . Object ;
@@ -32,7 +32,7 @@ public void CreatingHotkeyReturnsNullWhenNoMatchingCommandExists()
32
32
Assert . IsNull ( hotkey ) ;
33
33
}
34
34
35
- [ TestMethod ]
35
+ [ Test ]
36
36
public void CreatingHotkeyReturnsCorrectResult ( )
37
37
{
38
38
var mockCommand = new Mock < CommandBase > ( null ) . Object ;
@@ -46,9 +46,10 @@ public void CreatingHotkeyReturnsCorrectResult()
46
46
47
47
var hotkey = factory . Create ( setting , IntPtr . Zero ) ;
48
48
49
- MultiAssert . Aggregate (
50
- ( ) => Assert . AreEqual ( mockCommand , hotkey . Command ) ,
51
- ( ) => Assert . AreEqual ( setting . ToString ( ) , hotkey . Key ) ) ;
49
+ Assert . Multiple ( ( ) => {
50
+ Assert . AreEqual ( mockCommand , hotkey . Command ) ;
51
+ Assert . AreEqual ( setting . ToString ( ) , hotkey . Key ) ;
52
+ } ) ;
52
53
}
53
54
}
54
55
}
0 commit comments