diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml
index 9863e43..6a1857e 100644
--- a/.github/workflows/dotnet.yml
+++ b/.github/workflows/dotnet.yml
@@ -54,6 +54,6 @@ jobs:
run: |
dotnet tool install --global dotnet-coverage
.\.sonar\scanner\dotnet-sonarscanner begin /k:"astar-development_${{ env.SONAR_PROJECT }}" /o:"astar-development" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml /d:sonar.scanner.scanAll=false /d:sonar.scanner.skipJreProvisioning=true
- dotnet build --configuration Release
+ dotnet build
dotnet-coverage collect 'dotnet test --filter "FullyQualifiedName!~Tests.EndToEnd"' -f xml -o 'coverage.xml'
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
diff --git a/src/AStar.Dev.Functional.Extensions/AStar.Dev.Functional.Extensions.csproj b/src/AStar.Dev.Functional.Extensions/AStar.Dev.Functional.Extensions.csproj
index 38e7793..14ae997 100644
--- a/src/AStar.Dev.Functional.Extensions/AStar.Dev.Functional.Extensions.csproj
+++ b/src/AStar.Dev.Functional.Extensions/AStar.Dev.Functional.Extensions.csproj
@@ -23,6 +23,7 @@
latest
enable
true
+ Readme.md
AStar.Dev.Functional.Extensions
AStar Development 2025
A complete rewrite of Result etc., and additional extensions / objects.
@@ -34,11 +35,10 @@
-
-
-
-
-
+
+
+
+
diff --git a/src/AStar.Dev.Functional.Extensions/astar.png b/src/AStar.Dev.Functional.Extensions/astar.png
deleted file mode 100644
index 74b197e..0000000
Binary files a/src/AStar.Dev.Functional.Extensions/astar.png and /dev/null differ
diff --git a/test/AStar.Dev.Functional.Extensions.Tests.Unit/ResultExtensionsShould.cs b/test/AStar.Dev.Functional.Extensions.Tests.Unit/ResultExtensionsShould.cs
index c0590e8..dad9f77 100644
--- a/test/AStar.Dev.Functional.Extensions.Tests.Unit/ResultExtensionsShould.cs
+++ b/test/AStar.Dev.Functional.Extensions.Tests.Unit/ResultExtensionsShould.cs
@@ -15,7 +15,7 @@ public void MapSuccessValueWhenResultIsOk()
var matchResult = mapped.Match(
ok => ok,
- err => throw new("Should not be error")
+ err => throw new InvalidOperationException("Should not be error")
);
matchResult.ShouldBe("42");
@@ -31,7 +31,7 @@ public void PreserveErrorWhenMappingFailedResult()
mapped.ShouldBeOfType.Error>();
var matchResult = mapped.Match(
- _ => throw new("Should not be success"),
+ _ => throw new InvalidOperationException("Should not be success"),
err => err
);
@@ -49,7 +49,7 @@ public async Task MapSuccessValueAsyncWhenResultIsOk()
var matchResult = mapped.Match(
ok => ok,
- _ => throw new("Should not be error")
+ _ => throw new InvalidOperationException("Should not be error")
);
matchResult.ShouldBe("42");
@@ -65,7 +65,7 @@ public async Task PreserveErrorWhenMappingFailedResultAsync()
mapped.ShouldBeOfType.Error>();
var matchResult = mapped.Match(
- _ => throw new("Should not be success"),
+ _ => throw new InvalidOperationException("Should not be success"),
err => err
);
@@ -83,7 +83,7 @@ public async Task MapSuccessValueFromTaskResultWhenResultIsOk()
var matchResult = mapped.Match(
ok => ok,
- _ => throw new("Should not be error")
+ _ => throw new InvalidOperationException("Should not be error")
);
matchResult.ShouldBe("42");
@@ -99,7 +99,7 @@ public async Task PreserveErrorWhenMappingFailedTaskResult()
mapped.ShouldBeOfType.Error>();
var matchResult = mapped.Match(
- _ => throw new("Should not be success"),
+ _ => throw new InvalidOperationException("Should not be success"),
err => err
);
@@ -117,7 +117,7 @@ public async Task MapSuccessValueAsyncFromTaskResultWhenResultIsOk()
var matchResult = mapped.Match(
ok => ok,
- _ => throw new("Should not be error")
+ _ => throw new InvalidOperationException("Should not be error")
);
matchResult.ShouldBe("42");
@@ -133,7 +133,7 @@ public async Task PreserveErrorWhenMappingFailedTaskResultAsync()
mapped.ShouldBeOfType.Error>();
var matchResult = mapped.Match(
- _ => throw new("Should not be success"),
+ _ => throw new InvalidOperationException("Should not be success"),
err => err
);
@@ -154,7 +154,7 @@ public void MapErrorValueWhenResultIsError()
mapped.ShouldBeOfType.Error>();
var matchResult = mapped.Match(
- _ => throw new("Should not be success"),
+ _ => throw new InvalidOperationException("Should not be success"),
err => err
);
@@ -172,7 +172,7 @@ public void PreserveSuccessWhenMapFailureOnSuccessResult()
var matchResult = mapped.Match(
ok => ok,
- _ => throw new("Should not be error")
+ _ => throw new InvalidOperationException("Should not be error")
);
matchResult.ShouldBe("success");
@@ -188,7 +188,7 @@ public async Task MapErrorValueAsyncWhenResultIsError()
mapped.ShouldBeOfType.Error>();
var matchResult = mapped.Match(
- _ => throw new("Should not be success"),
+ _ => throw new InvalidOperationException("Should not be success"),
err => err
);
@@ -206,7 +206,7 @@ public async Task PreserveSuccessWhenMapFailureAsyncOnSuccessResult()
var matchResult = mapped.Match(
ok => ok,
- _ => throw new("Should not be error")
+ _ => throw new InvalidOperationException("Should not be error")
);
matchResult.ShouldBe("success");
@@ -222,7 +222,7 @@ public async Task MapErrorValueFromTaskResultWhenResultIsError()
mapped.ShouldBeOfType.Error>();
var matchResult = mapped.Match(
- _ => throw new("Should not be success"),
+ _ => throw new InvalidOperationException("Should not be success"),
err => err
);
@@ -240,7 +240,7 @@ public async Task PreserveSuccessWhenMapFailureOnSuccessTaskResult()
var matchResult = mapped.Match(
ok => ok,
- _ => throw new("Should not be error")
+ _ => throw new InvalidOperationException("Should not be error")
);
matchResult.ShouldBe("success");
@@ -256,7 +256,7 @@ public async Task MapErrorValueAsyncFromTaskResultWhenResultIsError()
mapped.ShouldBeOfType.Error>();
var matchResult = mapped.Match(
- _ => throw new("Should not be success"),
+ _ => throw new InvalidOperationException("Should not be success"),
err => err
);
@@ -274,7 +274,7 @@ public async Task PreserveSuccessWhenMapFailureAsyncOnSuccessTaskResult()
var matchResult = mapped.Match(
ok => ok,
- _ => throw new("Should not be error")
+ _ => throw new InvalidOperationException("Should not be error")
);
matchResult.ShouldBe("success");
@@ -295,7 +295,7 @@ public void BindSuccessValueToNewResultWhenResultIsOk()
var matchResult = bound.Match(
ok => ok,
- _ => throw new("Should not be error")
+ _ => throw new InvalidOperationException("Should not be error")
);
matchResult.ShouldBe("42");
@@ -311,7 +311,7 @@ public void BindSuccessValueToErrorResultWhenBindFunctionReturnsError()
bound.ShouldBeOfType.Error>();
var matchResult = bound.Match(
- _ => throw new("Should not be success"),
+ _ => throw new InvalidOperationException("Should not be success"),
err => err
);
@@ -328,7 +328,7 @@ public void PreserveErrorWhenBindingFailedResult()
bound.ShouldBeOfType.Error>();
var matchResult = bound.Match(
- _ => throw new("Should not be success"),
+ _ => throw new InvalidOperationException("Should not be success"),
err => err
);
@@ -346,7 +346,7 @@ public async Task BindSuccessValueAsyncToNewResultWhenResultIsOk()
var matchResult = bound.Match(
ok => ok,
- _ => throw new("Should not be error")
+ _ => throw new InvalidOperationException("Should not be error")
);
matchResult.ShouldBe("42");
@@ -362,7 +362,7 @@ public async Task BindSuccessValueAsyncToErrorResultWhenBindFunctionReturnsError
bound.ShouldBeOfType.Error>();
var matchResult = bound.Match(
- _ => throw new("Should not be success"),
+ _ => throw new InvalidOperationException("Should not be success"),
err => err
);
@@ -379,7 +379,7 @@ public async Task PreserveErrorWhenBindingAsyncFailedResult()
bound.ShouldBeOfType.Error>();
var matchResult = bound.Match(
- _ => throw new("Should not be success"),
+ _ => throw new InvalidOperationException("Should not be success"),
err => err
);
@@ -397,7 +397,7 @@ public async Task BindSuccessValueFromTaskResultWhenResultIsOk()
var matchResult = bound.Match(
ok => ok,
- _ => throw new("Should not be error")
+ _ => throw new InvalidOperationException("Should not be error")
);
matchResult.ShouldBe("42");
@@ -413,7 +413,7 @@ public async Task BindSuccessValueFromTaskResultToErrorWhenBindFunctionReturnsEr
bound.ShouldBeOfType.Error>();
var matchResult = bound.Match(
- _ => throw new("Should not be success"),
+ _ => throw new InvalidOperationException("Should not be success"),
err => err
);
@@ -430,7 +430,7 @@ public async Task PreserveErrorWhenBindingFailedTaskResult()
bound.ShouldBeOfType.Error>();
var matchResult = bound.Match(
- _ => throw new("Should not be success"),
+ _ => throw new InvalidOperationException("Should not be success"),
err => err
);
@@ -448,7 +448,7 @@ public async Task BindSuccessValueFromTaskResultAsyncWhenResultIsOk()
var matchResult = bound.Match(
ok => ok,
- _ => throw new("Should not be error")
+ _ => throw new InvalidOperationException("Should not be error")
);
matchResult.ShouldBe("42");
@@ -464,7 +464,7 @@ public async Task BindSuccessValueFromTaskResultAsyncToErrorWhenBindFunctionRetu
bound.ShouldBeOfType.Error>();
var matchResult = bound.Match(
- _ => throw new("Should not be success"),
+ _ => throw new InvalidOperationException("Should not be success"),
err => err
);
@@ -481,7 +481,7 @@ public async Task PreserveErrorWhenBindingFailedTaskResultAsync()
bound.ShouldBeOfType.Error>();
var matchResult = bound.Match(
- _ => throw new("Should not be success"),
+ _ => throw new InvalidOperationException("Should not be success"),
err => err
);