public void StringNames_AreMatch([Range(0, 1000, 99)] int d) { var testStringName = $"{d}"; var testsSingleType = new TestClassType(testStringName, new List <FieldInfo>(), new List <PropertyInfo>(), new List <MethodInfo>(), new List <EventInfo>()); Assert.That(testsSingleType.ClassName, Is.EqualTo(testStringName)); }
public void EventTypes_AreMatch([Range(0, 1000, 99)] int d) { var testEventType = new List <EventInfo>(d); var testsSingleType = new TestClassType("testName", new List <FieldInfo>(), new List <PropertyInfo>(), new List <MethodInfo>(), testEventType); Assert.That(testsSingleType.EventsType, Is.EqualTo(testEventType)); }
public void SingleType_TypeIsRight() { var testsSingleType = new TestClassType("testName", new List <FieldInfo>(), new List <PropertyInfo>(), new List <MethodInfo>(), new List <EventInfo>()); Assert.IsInstanceOf <ITypeProvider>(testsSingleType); }