Skip to content

Commit

Permalink
Remove unused objects in tests
Browse files Browse the repository at this point in the history
Should get rid of some warnings
  • Loading branch information
blowfishpro committed Feb 6, 2017
1 parent 287a3af commit a6fc76c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions B9PartSwitchTests/Fishbones/FieldWrappers/FieldWrapperTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ public void TestSetValue()
[Fact]
public void TestSetValue__Null()
{
DummyClass dummy = new DummyClass();

Assert.Throws<ArgumentNullException>(() => wrapper.SetValue(null, true));
}

Expand Down
2 changes: 0 additions & 2 deletions B9PartSwitchTests/Fishbones/NodeDataListTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public void TestLoad()
[Fact]
public void TestLoad__NullArgument()
{
object subject = new object();
ConfigNode node = new ConfigNode();
OperationContext context = new OperationContext(Operation.LoadInstance, Substitute.For<object>());

Expand Down Expand Up @@ -87,7 +86,6 @@ public void TestSave()
[Fact]
public void TestSave__NullArgument()
{
object subject = new object();
ConfigNode node = new ConfigNode();
OperationContext context = new OperationContext(Operation.Save, Substitute.For<object>());

Expand Down
2 changes: 1 addition & 1 deletion B9PartSwitchTests/Fishbones/UseParserTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private DummyValueParserWithNoConstructor() { }
[Fact]
public void TestNew()
{
UseParser useParser = new UseParser(typeof(DummyValueParser));
new UseParser(typeof(DummyValueParser));
}

[Fact]
Expand Down

0 comments on commit a6fc76c

Please sign in to comment.