Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Benchmarks/aweXpect.Benchmarks/HappyCaseBenchmarks.Bool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,4 @@ public async Task<bool> Bool_aweXpect()
[Benchmark]
public AndConstraint<BooleanAssertions> Bool_FluentAssertions()
=> _boolSubject.Should().BeTrue();

[Benchmark]
public async Task<bool> Bool_TUnit()
=> await Assert.That(_boolSubject).IsTrue();
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ public async Task<Nested> Equivalency_aweXpect()
public AndConstraint<ObjectAssertions> Equivalency_FluentAssertions()
=> _nestedSubject.Should().BeEquivalentTo(_nestedExpectation);

[Benchmark]
public async Task<Nested?> Equivalency_TUnit()
=> await Assert.That(_nestedSubject).IsEquivalentTo(_nestedExpectation);

public sealed class Nested
{
public int A { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,4 @@ public async Task<int> Int_GreaterThan_aweXpect()
[Benchmark]
public AndConstraint<NumericAssertions<int>> Int_GreaterThan_FluentAssertions()
=> _intSubject.Should().BeGreaterThan(_intMinimum);

[Benchmark]
public async Task<int> Int_GreaterThan_TUnit()
=> await Assert.That(_intSubject).IsGreaterThan(_intMinimum);
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,4 @@ public async Task ItemsCount_AtLeast_aweXpect()
[Benchmark]
public AndConstraint<GenericCollectionAssertions<int>> ItemsCount_AtLeast_FluentAssertions()
=> _enumerableSubject.Should().HaveCountGreaterThanOrEqualTo(_enumerableCount);

[Benchmark]
public async Task ItemsCount_AtLeast_TUnit()
=> await Assert.That(_enumerableSubject).HasCount().GreaterThanOrEqualTo(_enumerableCount);
}
4 changes: 0 additions & 4 deletions Benchmarks/aweXpect.Benchmarks/HappyCaseBenchmarks.String.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,4 @@ public partial class HappyCaseBenchmarks
[Benchmark]
public AndConstraint<StringAssertions> String_FluentAssertions()
=> _stringSubject.Should().BeEquivalentTo(_stringExpectation, o => o.IgnoringCase());

[Benchmark]
public async Task<string?> String_TUnit()
=> await Assert.That(_stringSubject).IsEqualTo(_stringExpectation).IgnoringCase();
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,4 @@ public async Task StringArray_aweXpect()
[Benchmark]
public AndConstraint<StringCollectionAssertions<IEnumerable<string>>> StringArray_FluentAssertions()
=> _stringArraySubject.Should().Equal(_stringArrayExpectation);

[Benchmark]
public async Task StringArray_TUnit()
=> (await Assert.That(_stringArraySubject).IsEquivalentTo(_stringArrayExpectation))?.Consume(_consumer);
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,4 @@ public async Task StringArrayInAnyOrder_aweXpect()
[Benchmark]
public AndConstraint<StringCollectionAssertions<IEnumerable<string>>> StringArrayInAnyOrder_FluentAssertions()
=> _stringArrayAnyOrderSubject.Should().BeEquivalentTo(_stringArrayAnyOrderExpectation);

[Benchmark]
public async Task StringArrayInAnyOrder_TUnit()
=> (await Assert.That(_stringArrayAnyOrderSubject)
.IsEquivalentTo(_stringArrayAnyOrderExpectation, CollectionOrdering.Any))?.Consume(_consumer);
}
3 changes: 3 additions & 0 deletions Docs/pages/docs/extensions/project/Mockolate/00-index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# aweXpect.Mockolate
Comment thread
vbreuss marked this conversation as resolved.

*The project can be found [here](https://github.com/aweXpect/aweXpect.Mockolate).*
8 changes: 8 additions & 0 deletions Docs/pages/docs/extensions/project/Mockolate/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"label": "aweXpect.Mockolate",
"position": 5,
"link": {
"type": "doc",
"id": "extensions/project/Mockolate/index"
}
}
3 changes: 3 additions & 0 deletions Docs/pages/docs/mockolate/00-index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Mockolate

*The project can be found [here](https://github.com/aweXpect/Mockolate).*
27 changes: 20 additions & 7 deletions Docs/pages/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ const config: Config = {
label: 'Extensions',
},
{
to: '/benchmarks',
label: 'Benchmarks',
position: 'left'
type: 'docSidebar',
sidebarId: 'mockolateSidebar',
position: 'left',
label: 'Mockolate',
},
// Add blog link here if blog functionality is re-enabled in the future (https://github.com/aweXpect/aweXpect/pull/722)
],
Expand All @@ -110,8 +111,8 @@ const config: Config = {
to: '/docs/category/extension-projects',
},
{
label: 'Benchmarks',
to: '/benchmarks',
label: 'Mockolate',
to: '/docs/mockolate/index',
},
],
},
Expand All @@ -126,6 +127,10 @@ const config: Config = {
label: 'Stryker Mutator',
href: 'https://dashboard.stryker-mutator.io/reports/github.com/aweXpect/aweXpect/main#mutant',
},
{
label: 'Benchmarks',
to: '/benchmarks',
},
],
},
{
Expand Down Expand Up @@ -168,8 +173,16 @@ const config: Config = {
from: '/aweXpect.Testably',
},
{
to: '/docs/extensions/project/Reflection/index',
from: '/aweXpect.Reflection',
to: '/docs/extensions/project/Reflection/index',
from: '/aweXpect.Reflection',
},
{
to: '/docs/extensions/project/Mockolate/index',
from: '/aweXpect.Mockolate',
},
{
to: '/docs/mockolate/index',
from: '/Mockolate',
},
],
},
Expand Down
Loading
Loading