public void Initialize_Valid_CorrectSubMethodTypes( [Values(10, 20, 200)] int count) { var facade = new ListFacadeMethodInfo(new ListInputType() { UUID = Utilities.RandomGuidStrings(count) }, CprBroker.Schemas.SourceUsageOrder.LocalThenExternal, "", ""); facade.Initialize(); CollectionAssert.AllItemsAreInstancesOfType(facade.SubMethodInfos, typeof(ReadSubMethodInfo)); }
public void Initialize_Valid_CorrectCount( [Values(10, 20, 200)] int count) { var facade = new ListFacadeMethodInfo(new ListInputType() { UUID = Utilities.RandomGuidStrings(count) }, CprBroker.Schemas.SourceUsageOrder.LocalThenExternal, "", ""); facade.Initialize(); Assert.AreEqual(count, facade.SubMethodInfos.Length); }