Renamed Dim.Function->Func to align iwth C# Func type.

Dim API doc fixes and code cleanup
This commit is contained in:
Tig
2024-05-16 06:41:36 -07:00
parent c12c20603f
commit 80d9a97e2d
7 changed files with 64 additions and 48 deletions

View File

@@ -14,12 +14,12 @@ public class DimFunctionTests (ITestOutputHelper output)
Func<int> f1 = () => 0;
Func<int> f2 = () => 0;
Dim dim1 = Dim.Function (f1);
Dim dim2 = Dim.Function (f2);
Dim dim1 = Dim.Func (f1);
Dim dim2 = Dim.Func (f2);
Assert.Equal (dim1, dim2);
f2 = () => 1;
dim2 = Dim.Function (f2);
dim2 = Dim.Func (f2);
Assert.NotEqual (dim1, dim2);
}
@@ -27,7 +27,7 @@ public class DimFunctionTests (ITestOutputHelper output)
public void DimFunction_SetsValue ()
{
var text = "Test";
Dim dim = Dim.Function (() => text.Length);
Dim dim = Dim.Func (() => text.Length);
Assert.Equal ("DimFunc(4)", dim.ToString ());
text = "New Test";