public override IEnumerable <object[]> GetData(MethodInfo testMethod) { if (DataLoader.DataExists <AppSettings>("") == true.ToString()) { var array = DataLoader.LoadJsonDictonary <AppSettings>(""); array.Remove("mssql"); if (array.Count > 0) { foreach (var appSettings in array) { yield return(new object[] { appSettings }); } } else { yield return(new object[] { null }); } } else { yield return(new object[] { null }); } }
public SkipDbIntegrationTheory() { var skipReason = DataLoader.DataExists <AppSettings>(""); if (skipReason == true.ToString()) { var array = DataLoader.LoadJsonDictonary <AppSettings>(""); // skip mssql in gitlab skipReason = (!(array.Count == 1 && array.ContainsKey("mssql"))).ToString(); if (skipReason != true.ToString()) { skipReason = "mssql tests are skipped"; } } else { skipReason = "Missing" + skipReason; } if (skipReason != true.ToString()) { var msg = "Database tests skipped: " + skipReason; Console.WriteLine(msg); Skip = msg; } }
public SkipDbIntegrationFact() { var skipReason = DataLoader.DataExists <AppSettings>(""); if (skipReason != true.ToString()) { var msg = "Database tests skipped: Missing" + skipReason; Console.WriteLine(msg); Skip = msg; } }
// TODO fix this to swap arrays to lists // Use this for initialization void Awake() { DataLoader dataLoader = new DataLoader(); if (!dataLoader.DataExists()) { DontDestroyOnLoad(gameObject); gameObject.tag = "Loaded"; } LoadMenuData(); LoadPlayerComp(); LoadBattleData();// need to move this so that it loads right before entering a battle TODO }