// The contents of this class were created by the Mocklis code-generator. // Any changes you make will be overwritten if the contents are re-generated. public MockValueTaskMethods() { ReturnValueTaskInt = new FuncMethodMock <ValueTask <int> >(this, "MockValueTaskMethods", "IValueTaskMethods", "ReturnValueTaskInt", "ReturnValueTaskInt", Strictness.Lenient); ReturnValueTask = new FuncMethodMock <ValueTask>(this, "MockValueTaskMethods", "IValueTaskMethods", "ReturnValueTask", "ReturnValueTask", Strictness.Lenient); }
// The contents of this class were created by the Mocklis code-generator. // Any changes you make will be overwritten if the contents are re-generated. public TestClass() { Property = new PropertyMock <int>(this, "TestClass", "ITestClass", "Property", "Property", Strictness.VeryStrict); Item = new IndexerMock <int, string>(this, "TestClass", "ITestClass", "this[]", "Item", Strictness.VeryStrict); MyMethod = new FuncMethodMock <string, string>(this, "TestClass", "ITestClass", "MyMethod", "MyMethod", Strictness.VeryStrict); MyEvent = new EventMock <EventHandler>(this, "TestClass", "ITestClass", "MyEvent", "MyEvent", Strictness.VeryStrict); }
// The contents of this class were created by the Mocklis code-generator. // Any changes you make will be overwritten if the contents are re-generated. public TestClass() { DataReceived = new EventMock <EventHandler <DuplexConnectionDataEventArgs> >(this, "TestClass", "IDuplexConnection", "DataReceived", "DataReceived", Strictness.Lenient); TextReceived = new EventMock <EventHandler <DuplexConnectionTextEventArgs> >(this, "TestClass", "IDuplexConnection", "TextReceived", "TextReceived", Strictness.Lenient); SendData = new ActionMethodMock <byte[]>(this, "TestClass", "IDuplexConnection", "SendData", "SendData", Strictness.Lenient); SendText = new ActionMethodMock <string>(this, "TestClass", "IDuplexConnection", "SendText", "SendText", Strictness.Lenient); Close = new FuncMethodMock <string, Task <string> >(this, "TestClass", "IDuplexConnection", "Close", "Close", Strictness.Lenient); Run = new FuncMethodMock <Task>(this, "TestClass", "IDuplexConnection", "Run", "Run", Strictness.Lenient); SubProtocol = new PropertyMock <string>(this, "TestClass", "IDuplexConnection", "SubProtocol", "SubProtocol", Strictness.Lenient); }
// The contents of this class were created by the Mocklis code-generator. // Any changes you make will be overwritten if the contents are re-generated. public TestClass() { ActionWithoutParameters = new ActionMethodMock(this, "TestClass", "ITestClass", "ActionWithoutParameters", "ActionWithoutParameters", Strictness.Lenient); ActionWithOneParameter = new ActionMethodMock <int>(this, "TestClass", "ITestClass", "ActionWithOneParameter", "ActionWithOneParameter", Strictness.Lenient); ActionWithTwoParameters = new ActionMethodMock <(int i1, int i2)>(this, "TestClass", "ITestClass", "ActionWithTwoParameters", "ActionWithTwoParameters", Strictness.Lenient); ActionWithThreeParameters = new ActionMethodMock <(int i1, int i2, int i3)>(this, "TestClass", "ITestClass", "ActionWithThreeParameters", "ActionWithThreeParameters", Strictness.Lenient); FuncWithoutParameters = new FuncMethodMock <int>(this, "TestClass", "ITestClass", "FuncWithoutParameters", "FuncWithoutParameters", Strictness.Lenient); FuncWithOneParameter = new FuncMethodMock <int, int>(this, "TestClass", "ITestClass", "FuncWithOneParameter", "FuncWithOneParameter", Strictness.Lenient); FuncWithTwoParameters = new FuncMethodMock <(int i1, int i2), int>(this, "TestClass", "ITestClass", "FuncWithTwoParameters", "FuncWithTwoParameters", Strictness.Lenient); FuncWithThreeParameters = new FuncMethodMock <(int i1, int i2, int i3), int>(this, "TestClass", "ITestClass", "FuncWithThreeParameters", "FuncWithThreeParameters", Strictness.Lenient); }
protected TestClass() { NullableProperty = new PropertyMock <string?>(this, "TestClass", "ITestClass", "NullableProperty", "NullableProperty", Strictness.Lenient); NormalProperty = new PropertyMock <string>(this, "TestClass", "ITestClass", "NormalProperty", "NormalProperty", Strictness.Lenient); Item = new IndexerMock <int, string?>(this, "TestClass", "ITestClass", "this[]", "Item", Strictness.Lenient); Item0 = new IndexerMock <bool, string>(this, "TestClass", "ITestClass", "this[]", "Item0", Strictness.Lenient); Item1 = new IndexerMock <string?, string?>(this, "TestClass", "ITestClass", "this[]", "Item1", Strictness.Lenient); Item2 = new IndexerMock <(int i, string?s), string>(this, "TestClass", "ITestClass", "this[]", "Item2", Strictness.Lenient); NonNullableEvent = new EventMock <EventHandler>(this, "TestClass", "ITestClass", "NonNullableEvent", "NonNullableEvent", Strictness.Lenient); NullableEvent = new EventMock <EventHandler>(this, "TestClass", "ITestClass", "NullableEvent", "NullableEvent", Strictness.Lenient); Method1 = new FuncMethodMock <string?, string>(this, "TestClass", "ITestClass", "Method1", "Method1", Strictness.Lenient); Method2 = new FuncMethodMock <string, string?>(this, "TestClass", "ITestClass", "Method2", "Method2", Strictness.Lenient); Method3 = new FuncMethodMock <(string p1, string?p2), string>(this, "TestClass", "ITestClass", "Method3", "Method3", Strictness.Lenient); }
// The contents of this class were created by the Mocklis code-generator. // Any changes you make will be overwritten if the contents are re-generated. public MockMembers() { MyEvent = new EventMock <EventHandler>(this, "MockMembers", "IEvents", "MyEvent", "MyEvent", Strictness.Lenient); SpecialEvent = new EventMock <EventHandler <SpecialEventArgs> >(this, "MockMembers", "IEvents", "SpecialEvent", "SpecialEvent", Strictness.Lenient); SimpleAction = new ActionMethodMock(this, "MockMembers", "IMethods", "SimpleAction", "SimpleAction", Strictness.Lenient); ActionWithParameter = new ActionMethodMock <int>(this, "MockMembers", "IMethods", "ActionWithParameter", "ActionWithParameter", Strictness.Lenient); SimpleFunc = new FuncMethodMock <int>(this, "MockMembers", "IMethods", "SimpleFunc", "SimpleFunc", Strictness.Lenient); FuncWithParameter = new FuncMethodMock <int, int>(this, "MockMembers", "IMethods", "FuncWithParameter", "FuncWithParameter", Strictness.Lenient); StringProperty = new PropertyMock <string>(this, "MockMembers", "IProperties", "StringProperty", "StringProperty", Strictness.Lenient); IntProperty = new PropertyMock <int>(this, "MockMembers", "IProperties", "IntProperty", "IntProperty", Strictness.Lenient); BoolProperty = new PropertyMock <bool>(this, "MockMembers", "IProperties", "BoolProperty", "BoolProperty", Strictness.Lenient); DateTimeProperty = new PropertyMock <DateTime>(this, "MockMembers", "IProperties", "DateTimeProperty", "DateTimeProperty", Strictness.Lenient); Item = new IndexerMock <int, string>(this, "MockMembers", "IIndexers", "this[]", "Item", Strictness.Lenient); Item0 = new IndexerMock <bool, DateTime>(this, "MockMembers", "IIndexers", "this[]", "Item0", Strictness.Lenient); }
// The contents of this class were created by the Mocklis code-generator. // Any changes you make will be overwritten if the contents are re-generated. public TestClass() { ContainsKey = new FuncMethodMock <TKey, bool>(this, "TestClass", "IDictionary", "ContainsKey", "ContainsKey", Strictness.Lenient); Add = new ActionMethodMock <(TKey key, TValue value)>(this, "TestClass", "IDictionary", "Add", "Add", Strictness.Lenient); Remove = new FuncMethodMock <TKey, bool>(this, "TestClass", "IDictionary", "Remove", "Remove", Strictness.Lenient); TryGetValue = new FuncMethodMock <TKey, (bool returnValue, TValue value)>(this, "TestClass", "IDictionary", "TryGetValue", "TryGetValue", Strictness.Lenient); Item = new IndexerMock <TKey, TValue>(this, "TestClass", "IDictionary", "this[]", "Item", Strictness.Lenient); Keys = new PropertyMock <ICollection <TKey> >(this, "TestClass", "IDictionary", "Keys", "Keys", Strictness.Lenient); Values = new PropertyMock <ICollection <TValue> >(this, "TestClass", "IDictionary", "Values", "Values", Strictness.Lenient); Add0 = new ActionMethodMock <KeyValuePair <TKey, TValue> >(this, "TestClass", "ICollection", "Add", "Add0", Strictness.Lenient); Clear = new ActionMethodMock(this, "TestClass", "ICollection", "Clear", "Clear", Strictness.Lenient); Contains = new FuncMethodMock <KeyValuePair <TKey, TValue>, bool>(this, "TestClass", "ICollection", "Contains", "Contains", Strictness.Lenient); CopyTo = new ActionMethodMock <(KeyValuePair <TKey, TValue>[] array, int arrayIndex)>(this, "TestClass", "ICollection", "CopyTo", "CopyTo", Strictness.Lenient); Remove0 = new FuncMethodMock <KeyValuePair <TKey, TValue>, bool>(this, "TestClass", "ICollection", "Remove", "Remove0", Strictness.Lenient); Count = new PropertyMock <int>(this, "TestClass", "ICollection", "Count", "Count", Strictness.Lenient); IsReadOnly = new PropertyMock <bool>(this, "TestClass", "ICollection", "IsReadOnly", "IsReadOnly", Strictness.Lenient); GetEnumerator = new FuncMethodMock <IEnumerator <KeyValuePair <TKey, TValue> > >(this, "TestClass", "IEnumerable", "GetEnumerator", "GetEnumerator", Strictness.Lenient); GetEnumerator0 = new FuncMethodMock <System.Collections.IEnumerator>(this, "TestClass", "IEnumerable", "GetEnumerator", "GetEnumerator0", Strictness.Lenient); }
// The contents of this class were created by the Mocklis code-generator. // Any changes you make will be overwritten if the contents are re-generated. public MockPropertyStep() { Get = new FuncMethodMock <IMockInfo, TValue>(this, "MockPropertyStep", "IPropertyStep", "Get", "Get", Strictness.Lenient); Set = new ActionMethodMock <(IMockInfo mockInfo, TValue value)>(this, "MockPropertyStep", "IPropertyStep", "Set", "Set", Strictness.Lenient); }
// The contents of this class were created by the Mocklis code-generator. // Any changes you make will be overwritten if the contents are re-generated. public MockTaskMethods() { ReturnTaskInt = new FuncMethodMock <System.Threading.Tasks.Task <int> >(this, "MockTaskMethods", "ITaskMethods", "ReturnTaskInt", "ReturnTaskInt", Strictness.Lenient); ReturnTask = new FuncMethodMock <System.Threading.Tasks.Task>(this, "MockTaskMethods", "ITaskMethods", "ReturnTask", "ReturnTask", Strictness.Lenient); }
// The contents of this class were created by the Mocklis code-generator. // Any changes you make will be overwritten if the contents are re-generated. public TestClass() { DoCalculation = new FuncMethodMock <T1, string>(this, "TestClass", "ITestClass", "DoCalculation", "DoCalculation", Strictness.Lenient); }
// The contents of this class were created by the Mocklis code-generator. // Any changes you make will be overwritten if the contents are re-generated. public TestClass() { TestClass0 = new FuncMethodMock <int, string>(this, "TestClass", "ITestClass", "TestClass", "TestClass0", Strictness.Lenient); }
// The contents of this class were created by the Mocklis code-generator. // Any changes you make will be overwritten if the contents are re-generated. public MockVerifiable() { Verify = new FuncMethodMock <System.IFormatProvider?, System.Collections.Generic.IEnumerable <VerificationResult> >(this, "MockVerifiable", "IVerifiable", "Verify", "Verify", Strictness.Lenient); }
public MissingMethodStepCallTests() { _methodMock = new FuncMethodMock <int, string>(new object(), "TestClass", "ITest", "Method", "Method1", Strictness.Lenient); _missingMethodStep = MissingMethodStep <int, string> .Instance; }
// The contents of this class were created by the Mocklis code-generator. // Any changes you make will be overwritten if the contents are re-generated. public TestClass() { ReturnsByRef = new FuncMethodMock <int>(this, "TestClass", "ITestClass", "ReturnsByRef", "ReturnsByRef", Strictness.Lenient); }
protected TestClass() { Property = new PropertyMock <T?>(this, "TestClass", "ITestClass", "Property", "Property", Strictness.Lenient); Item = new IndexerMock <(T?p1, T?p2), T?>(this, "TestClass", "ITestClass", "this[]", "Item", Strictness.Lenient); Test = new FuncMethodMock <T?, T?>(this, "TestClass", "ITestClass", "Test", "Test", Strictness.Lenient); }
// The contents of this class were created by the Mocklis code-generator. // Any changes you make will be overwritten if the contents are re-generated. public TestClass() { Test0 = new FuncMethodMock <int, string>(this, "TestClass", "ITestClass", "Test", "Test0", Strictness.Lenient); AnotherTest0 = new PropertyMock <bool>(this, "TestClass", "ITestClass", "AnotherTest", "AnotherTest0", Strictness.Lenient); }
// The contents of this class were created by the Mocklis code-generator. // Any changes you make will be overwritten if the contents are re-generated. public MockCalculator() { Calculate = new FuncMethodMock <int, int>(this, "MockCalculator", "ICalculator", "Calculate", "Calculate", Strictness.Lenient); }
// The contents of this class were created by the Mocklis code-generator. // Any changes you make will be overwritten if the contents are re-generated. public TestClass() { GetEnumerator = new FuncMethodMock <IEnumerator <T> >(this, "TestClass", "IEnumerable", "GetEnumerator", "GetEnumerator", Strictness.Lenient); GetEnumerator0 = new FuncMethodMock <System.Collections.IEnumerator>(this, "TestClass", "IEnumerable", "GetEnumerator", "GetEnumerator0", Strictness.Lenient); }