Ejemplo n.º 1
0
        // 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);
        }
Ejemplo n.º 2
0
        // 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);
        }
Ejemplo n.º 3
0
 protected TestClass()
 {
     NormalProperty            = new PropertyMock <string?>(this, "TestClass", "ITestClass", "NormalProperty", "NormalProperty", Strictness.Lenient);
     Item                      = new IndexerMock <string?, string?>(this, "TestClass", "ITestClass", "this[]", "Item", Strictness.Lenient);
     NonNullableEvent          = new EventMock <EventHandler>(this, "TestClass", "ITestClass", "NonNullableEvent", "NonNullableEvent", Strictness.Lenient);
     Method3                   = new FuncMethodMock <(string?p1, string?p2), string?>(this, "TestClass", "ITestClass", "Method3", "Method3", Strictness.Lenient);
     ValueTypeProperty         = new PropertyMock <int>(this, "TestClass", "ITestClass", "ValueTypeProperty", "ValueTypeProperty", Strictness.Lenient);
     NullableValueTypeProperty = new PropertyMock <int?>(this, "TestClass", "ITestClass", "NullableValueTypeProperty", "NullableValueTypeProperty", 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);
 }
Ejemplo n.º 5
0
        // 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);
        }
Ejemplo n.º 7
0
 public MissingIndexerStepSetTests()
 {
     _indexerMock        = new IndexerMock <int, string>(new object(), "TestClass", "ITest", "Indexer", "Indexer1", Strictness.Lenient);
     _missingIndexerStep = MissingIndexerStep <int, string> .Instance;
 }
Ejemplo n.º 8
0
        // 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()
        {
            TheIndexerName  = new IndexerMock <int, int>(this, "TestClass", "ITestClass", "this[]", "TheIndexerName", Strictness.Lenient);
            TheIndexerName0 = new IndexerMock <(int TheIndexerName, int OtherItem), int>(this, "TestClass", "ITestClass", "this[]", "TheIndexerName0", Strictness.Lenient);
        }
Ejemplo n.º 9
0
        // 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()
        {
            TheIndexerName = new IndexerMock <int, int>(this, "TestClass", "ITestClass", "this[]", "TheIndexerName", 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()
        {
            Item  = new IndexerMock <int, int>(this, "TestClass", "ITestClass", "this[]", "Item", Strictness.Lenient);
            Item0 = new IndexerMock <string, int>(this, "TestClass", "ITestClass", "this[]", "Item0", Strictness.Lenient);
            Item1 = new IndexerMock <char, int>(this, "TestClass", "ITestClass", "this[]", "Item1", Strictness.Lenient);
        }
Ejemplo n.º 11
0
        // 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()
        {
            Item  = new IndexerMock <(int Item0, int Item2, int Item02, int Item_, int ItemTest), int>(this, "TestClass", "ITestClass", "this[]", "Item", Strictness.Lenient);
            Item0 = new IndexerMock <int, int>(this, "TestClass", "ITestClass", "this[]", "Item0", Strictness.Lenient);
        }