// 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", "IMembers", "MyEvent", "MyEvent", Strictness.Lenient); Item = new IndexerMock <int, string>(this, "MockMembers", "IMembers", "this[]", "Item", Strictness.Lenient); DoStuff = new ActionMethodMock(this, "MockMembers", "IMembers", "DoStuff", "DoStuff", Strictness.Lenient); Calculate = new FuncMethodMock <(int value1, int value2), int>(this, "MockMembers", "IMembers", "Calculate", "Calculate", Strictness.Lenient); StringProperty = new PropertyMock <string>(this, "MockMembers", "IMembers", "StringProperty", "StringProperty", 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() { 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); }
// 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 MockLogContext() { LogAfterEventAdd = new ActionMethodMock <IMockInfo>(this, "MockLogContext", "ILogContext", "LogAfterEventAdd", "LogAfterEventAdd", Strictness.Lenient); LogEventAddException = new ActionMethodMock <(IMockInfo mockInfo, Exception exception)>(this, "MockLogContext", "ILogContext", "LogEventAddException", "LogEventAddException", Strictness.Lenient); LogAfterEventRemove = new ActionMethodMock <IMockInfo>(this, "MockLogContext", "ILogContext", "LogAfterEventRemove", "LogAfterEventRemove", Strictness.Lenient); LogEventRemoveException = new ActionMethodMock <(IMockInfo mockInfo, Exception exception)>(this, "MockLogContext", "ILogContext", "LogEventRemoveException", "LogEventRemoveException", Strictness.Lenient); LogIndexerGetException = new ActionMethodMock <(IMockInfo mockInfo, Exception exception)>(this, "MockLogContext", "ILogContext", "LogIndexerGetException", "LogIndexerGetException", Strictness.Lenient); LogAfterIndexerSet = new ActionMethodMock <IMockInfo>(this, "MockLogContext", "ILogContext", "LogAfterIndexerSet", "LogAfterIndexerSet", Strictness.Lenient); LogIndexerSetException = new ActionMethodMock <(IMockInfo mockInfo, Exception exception)>(this, "MockLogContext", "ILogContext", "LogIndexerSetException", "LogIndexerSetException", Strictness.Lenient); LogBeforeMethodCallWithoutParameters = new ActionMethodMock <IMockInfo>(this, "MockLogContext", "ILogContext", "LogBeforeMethodCallWithoutParameters", "LogBeforeMethodCallWithoutParameters", Strictness.Lenient); LogAfterMethodCallWithoutResult = new ActionMethodMock <IMockInfo>(this, "MockLogContext", "ILogContext", "LogAfterMethodCallWithoutResult", "LogAfterMethodCallWithoutResult", Strictness.Lenient); LogMethodCallException = new ActionMethodMock <(IMockInfo mockInfo, Exception exception)>(this, "MockLogContext", "ILogContext", "LogMethodCallException", "LogMethodCallException", Strictness.Lenient); LogBeforePropertyGet = new ActionMethodMock <IMockInfo>(this, "MockLogContext", "ILogContext", "LogBeforePropertyGet", "LogBeforePropertyGet", Strictness.Lenient); LogPropertyGetException = new ActionMethodMock <(IMockInfo mockInfo, Exception exception)>(this, "MockLogContext", "ILogContext", "LogPropertyGetException", "LogPropertyGetException", Strictness.Lenient); LogAfterPropertySet = new ActionMethodMock <IMockInfo>(this, "MockLogContext", "ILogContext", "LogAfterPropertySet", "LogAfterPropertySet", Strictness.Lenient); LogPropertySetException = new ActionMethodMock <(IMockInfo mockInfo, Exception exception)>(this, "MockLogContext", "ILogContext", "LogPropertySetException", "LogPropertySetException", 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 TestClass() { DoStuff = new ActionMethodMock <string>(this, "TestClass", "ITest", "DoStuff", "DoStuff", 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() { Property1 = new PropertyMock <int>(this, "TestClass", "ITest1", "Property1", "Property1", Strictness.Lenient); DoSomething = new ActionMethodMock <string>(this, "TestClass", "ITest2", "DoSomething", "DoSomething", 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() { Normal = new ActionMethodMock <string>(this, "TestClass", "ITestClass", "Normal", "Normal", Strictness.Lenient); }