mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Renamed Dim.Function->Func to align iwth C# Func type.
Dim API doc fixes and code cleanup
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user