Refactored actions
This commit is contained in:
Родитель
c6b6e1b77b
Коммит
2314a63462
|
@ -11,24 +11,14 @@ namespace ReactiveHistory.UnitTests
|
|||
[Trait("ReactiveHistory", "State")]
|
||||
public void Constructor_Should_Throw_When_Undo_Parameter_Is_Nulll()
|
||||
{
|
||||
Assert.Throws<ArgumentNullException>(
|
||||
"undo",
|
||||
() =>
|
||||
{
|
||||
var target = new State(null, () => { });
|
||||
});
|
||||
Assert.Throws<ArgumentNullException>("undo", () => new State(null, () => { }));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("ReactiveHistory", "State")]
|
||||
public void Constructor_Should_Throw_When_Redo_Parameter_Is_Nulll()
|
||||
{
|
||||
Assert.Throws<ArgumentNullException>(
|
||||
"redo",
|
||||
() =>
|
||||
{
|
||||
var target = new State(() => { }, null);
|
||||
});
|
||||
Assert.Throws<ArgumentNullException>("redo", () => new State(() => { }, null));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
|
Загрузка…
Ссылка в новой задаче