Skip to content

Commit

Permalink
correct indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesasaurus committed Dec 15, 2023
1 parent abc6965 commit 87aaea4
Showing 1 changed file with 43 additions and 43 deletions.
86 changes: 43 additions & 43 deletions VCF.Tests/InitializationTests.cs
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
using System.Reflection;
using FakeItEasy;
using NUnit.Framework;
using VampireCommandFramework;

namespace VCF.Tests;

public class InitializationTests
{
[SetUp]
public void Setup()
{
CommandRegistry.Reset();
}

[TearDown]
public void TearDown()
{
CommandRegistry.Reset();
}

[Test]
public void ScanningInterfaceDoesNotCauseException()
{
Assert.DoesNotThrow(ScanAssemblyContainingInterface);
}

private void ScanAssemblyContainingInterface()
{
CommandRegistry.RegisterAll(AssemblyContainingInterface());
}

private Assembly AssemblyContainingInterface()
{
var mockAssembly = A.Fake<Assembly>();
A.CallTo(() => mockAssembly.GetTypes()).Returns(new Type[]{
typeof(ISomeInterface),
});
return mockAssembly;
}

private interface ISomeInterface;

using System.Reflection;
using FakeItEasy;
using NUnit.Framework;
using VampireCommandFramework;

namespace VCF.Tests;

public class InitializationTests
{
[SetUp]
public void Setup()
{
CommandRegistry.Reset();
}

[TearDown]
public void TearDown()
{
CommandRegistry.Reset();
}

[Test]
public void ScanningInterfaceDoesNotCauseException()
{
Assert.DoesNotThrow(ScanAssemblyContainingInterface);
}

private void ScanAssemblyContainingInterface()
{
CommandRegistry.RegisterAll(AssemblyContainingInterface());
}

private Assembly AssemblyContainingInterface()
{
var mockAssembly = A.Fake<Assembly>();
A.CallTo(() => mockAssembly.GetTypes()).Returns(new Type[]{
typeof(ISomeInterface),
});
return mockAssembly;
}

private interface ISomeInterface;

Check failure on line 42 in VCF.Tests/InitializationTests.cs

View workflow job for this annotation

GitHub Actions / build

{ expected

Check failure on line 42 in VCF.Tests/InitializationTests.cs

View workflow job for this annotation

GitHub Actions / build

} expected

Check failure on line 42 in VCF.Tests/InitializationTests.cs

View workflow job for this annotation

GitHub Actions / build

{ expected

Check failure on line 42 in VCF.Tests/InitializationTests.cs

View workflow job for this annotation

GitHub Actions / build

} expected

}

0 comments on commit 87aaea4

Please sign in to comment.