public TMS(string title, Action <long, string> action = null) : base (title, (t, x) => { MSTestLog.WriteLine($"{x} 執行 {t} ms"); }) { }
public ESA(string title, Action action = null) : base (title, () => { MSTestLog.WriteLine("離開 Scope 2 執行完畢!"); }) { }
public void GetGetPropertys() { NonPublicClass npc_ = new NonPublicClass(); List <NonPublic> pi_ = GetNonPublicValue.GetNonPublicPropertys(npc_); pi_.ForEach(x => { MSTestLog.WriteLine($"Propertys: name[ {x.npName}] type[ {x.npType.Name}] value[ {x.npObject.ToString()}]"); }); }
public void GetFields() { NonPublicClass npc_ = new NonPublicClass(); List <NonPublic> fs_ = GetNonPublicValue.GetNonPublicFields(npc_); fs_.ForEach(x => { MSTestLog.WriteLine($"Fields: name[ {x.npName} ] type[ {x.npType.Name} ] value[ {x.npObject.ToString()}]"); }); }
public void TestMethodJandiNotify() { Dictionary <int, string> dicUrl = new Dictionary <int, string>() { { 1, "https://" } }; JANDI notify_ = new JANDI(dicUrl); notify_.Notify($"代刚 Notify:{DateTime.Now.ToString()}", 1, "代刚"); MSTestLog.WriteLine($"代刚Θ:{DateTime.Now.ToString()}"); }
public void TestMethod() { void exitCallback_() { MSTestLog.WriteLine("離開 Scope 執行完畢!"); } using (var tms = new ExitScopeAction("離開 Scope 執行", exitCallback_)) { Thread.Sleep(2000); } }
public void TestMethod() { NonPublicClass npc_ = new NonPublicClass(); string npf_ = GetNonPublicValue.GetFieldValue(npc_, "NonPublicField") as string; MSTestLog.WriteLine($"NonPublic Field Value: {npf_}"); string npp_ = GetNonPublicValue.GetPropertyValue(npc_, "NonPublicProperty") as string; MSTestLog.WriteLine($"NonPublic Property Value: {npp_}"); }
public void TestMethod() { void exitTimeMeasure_(long t, string x) { MSTestLog.WriteLine($"{x} 執行 {t} ms"); } using (var tms = new TimeMeasureScope("for loop", exitTimeMeasure_)) { for (int i = 0; i < 10; ++i) { Thread.Sleep(200); } } }
public virtual void Initialize() { MSTestLog.Initialize(); }
public void TestMethod() { MSTestLog.WriteLine("³æ¤¸´ú¸Õ"); }