public async Task GetLoadingOrder_Should_Return_Objects() { ReloadResults(); ModulesLoaderEngine modulesLoaderEngine = new ModulesLoaderEngine(); var resultArray = await modulesLoaderEngine.GetLoadingOrder(_modules); Assert.IsTrue(resultArray.Count == 4); Assert.IsTrue(resultArray[0].Id == 1); Assert.IsTrue(resultArray[1].Id == 2); Assert.IsTrue(resultArray[2].Id == 3); Assert.IsTrue(resultArray[3].Id == 4); }
public async Task GetLoadingOrder_Should_Throw_ArgumentNullException_If_Modules_Is_Null() { ModulesLoaderEngine modulesLoaderEngine = new ModulesLoaderEngine(); await modulesLoaderEngine.GetLoadingOrder(null); }