public void Test_ConformsTo_2() { var targetSchema = new SubjectSchema(new List <Slot>() { TestData.GetSlot(167), TestData.GetSlot(171), TestData.GetSlot(207) }); var schemaToBeValidated = new SubjectSchema(new List <Slot>() { TestData.GetSlot(167), TestData.GetSlot(171), TestData.GetSlot(207) }); string result = schemaToBeValidated.ConformsTo(targetSchema); Assert.IsTrue(result == null); }
public void Test_ConformsTo_1() { var targetSchema = new SubjectSchema(new List <Slot>() { TestData.GetSlot(167), TestData.GetSlot(171), TestData.GetSlot(207) }); var schemaToBeValidated = new SubjectSchema(new List <Slot>() { TestData.GetSlot(167), TestData.GetSlot(171) }); string result = schemaToBeValidated.ConformsTo(targetSchema); Console.WriteLine(result); Assert.IsTrue(result.Contains("At least one TUTORIAL is needed")); }