Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
hlaueriksson committed Jul 13, 2024
1 parent 9d3371e commit d249df8
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 16 deletions.
8 changes: 4 additions & 4 deletions samples/LoFuUnit.Sample/TestsWithArrangeActAssert.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using FluentAssertions;
using NUnit.Framework;
Expand Down Expand Up @@ -26,7 +26,7 @@ public void Peek()
{
Assert();

void arrange() => Subject = new Stack<int>(new[] { 1, 2, 3 });
void arrange() => Subject = new Stack<int>([1, 2, 3]);
void act() => Result = Subject.Peek();
void assert_return_value() => Result.Should().Be(3);
void assert_element_non_removal() => Subject.Should().Contain(3);
Expand All @@ -37,10 +37,10 @@ public void Pop()
{
Assert();

void arrange() => Subject = new Stack<int>(new[] { 1, 2, 3 });
void arrange() => Subject = new Stack<int>([1, 2, 3]);
void act() => Result = Subject.Pop();
void assert_return_value() => Result.Should().Be(3);
void assert_element_removal() => Subject.Should().NotContain(Result);
}
}
}
}
6 changes: 3 additions & 3 deletions samples/LoFuUnit.Sample/TestsWithExtensionMethod.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using FluentAssertions;
using NUnit.Framework;
Expand All @@ -24,7 +24,7 @@ public void Empty_stack()
[Test]
public void Non_empty_stack()
{
Subject = new Stack<int>(new[] { 1, 2, 3 });
Subject = new Stack<int>([1, 2, 3]);

this.Assert();

Expand All @@ -42,4 +42,4 @@ void should_remove_the_top_element_when_calling__Pop__()
}
}
}
}
}
6 changes: 3 additions & 3 deletions samples/LoFuUnit.Sample/TestsWithGivenWhenThen.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using FluentAssertions;
using NUnit.Framework;
Expand Down Expand Up @@ -26,7 +26,7 @@ public void Non_empty_stack()
{
Assert();

void given_a_non_empty_stack() => Subject = new Stack<int>(new[] { 1, 2, 3 });
void given_a_non_empty_stack() => Subject = new Stack<int>([1, 2, 3]);
void when_calling_peek() => Result = Subject.Peek();
void then_it_returns_the_top_element() => Result.Should().Be(3);
void but_it_does_not_remove_the_top_element() => Subject.Should().Contain(3);
Expand All @@ -35,4 +35,4 @@ public void Non_empty_stack()
void and_it_removes_the_top_element() => Subject.Should().NotContain(Result);
}
}
}
}
6 changes: 3 additions & 3 deletions samples/LoFuUnit.Sample/TestsWithInheritance.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using FluentAssertions;
using NUnit.Framework;
Expand All @@ -24,7 +24,7 @@ public void Empty_stack()
[Test]
public void Non_empty_stack()
{
Subject = new Stack<int>(new[] { 1, 2, 3 });
Subject = new Stack<int>([1, 2, 3]);

Assert();

Expand All @@ -42,4 +42,4 @@ void should_remove_the_top_element_when_calling__Pop__()
}
}
}
}
}
4 changes: 1 addition & 3 deletions src/LoFuUnit/InternalLoFuTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
namespace LoFuUnit
{
internal class InternalLoFuTest : LoFuTest
{
}
internal class InternalLoFuTest : LoFuTest;
}

0 comments on commit d249df8

Please sign in to comment.