Autoplay
Autocomplete
Previous Lesson
Complete and Continue
2-6B-1-TestEpisode1(第1篇)-TestFramework(測試框架)-MSTest、NUnit
關於本課程
FAQ-Handout,SampleCode(常見問題-講義、範例程式碼)
(P1)關於測試 (12:33)
(P2)UnitTest(單元測試)、IntegrationTest(整合測試)、EndToEndTest(端對端測試) (9:58)
(P3-1)導讀Test(1to5)(.NetFramework) (20:19)
(P3-2)導讀Test(1)(.NetFramework) (19:36)
(P3-3)導讀Test(2)(.NetFramework) (31:58)
(P3-4)導讀Test(3)(.NetFramework) (23:22)
(P3-5)導讀Test(4)(.NetFramework) (23:50)
(P3-6)導讀Test(5)(.NetFramework) (16:21)
討論Arrange、Act、Assert(AAA)觀念
(T1-1)安裝NUnitTestAdapter。介紹Arrange、Act、Assert(AAA)觀念 (8:37)
(T1-2)寫Mathematics範例程式碼 (8:47)
(T1-3)用NUnit討論Arrange、Act、Assert(AAA)觀念 (12:18)
(T1-4)用MSTest討論Arrange、Act、Assert(AAA)觀念 (4:25)
(T2-1)討論UnitTestBoilerplateGenerator產生MSTest (16:45)
(T2-2)討論DebugUnitTest。在UnitTest這定BreakPoint (2:50)
(T2-3)討論UnitTestBoilerplateGenerator產生NUnit (4:46)
討論Trait(特徵)
(T3-1)MSTest的Grouping、Filtering (33:06)
(T3-2)NUnit的Grouping、Filtering (27:30)
討論CodeCoverage、測試Exception。不建議測試PrivateMethod。不建議執行OrderTests、GenericTest。使用command line跑MSTest
(T4-1)寫準備要測試的MathematicsClass (13:05)
(T4-2)用MSTest測試MathematicsClass (10:50)
(T4-3)討論CodeCoverage (10:40)
(T4-4)用MSTest測試Exception (4:50)
(T4-5)不建議用MSTest測試PrivateMethod (4:55)
(T4-6)不建議用MSTest執行OrderTests (4:10)
(T4-7)不建議用MSTest執行GenericTest (7:05)
(T4-8)使用commandLine執行MSTest (6:55)
討論TestContext.WriteLine、System.Diagnostics.Debug.WriteLine
(T5-1)在VS2013Pro使用MSTest的TestContext.WriteLine、System.Diagnostics.Debug.WriteLine (21:21)
(T5-2)在VS2017Community使用MSTest的TestContext.WriteLine、System.Diagnostics.Debug.WriteLine (16:26)
(T5-3)在VS2017Community使用NUnit的TestContext.WriteLine、System.Diagnostics.Debug.WriteLine (14:24)
MSTest和NUnit測試SqlServerDatabase、Csv、Xml
(T6-1)討論YieldReturn的Filter (18:40)
(T6-2)討論YieldReturn的Total (16:16)
(T7-1)前置準備 (12:47)
(T7-2)用File.ReadLines讀取CSV (20:18)
(T7-3)用File.ReadLines讀取CSV,討論exception處理方式 (10:29)
(T7-4)用File.ReadLines、YieldReturn讀取CSV (9:05)
(T7-5)用File.ReadLines、YieldReturn讀取CSV,討論exception處理方式 (7:52)
(T7-6)用LumenWorksCsvReader讀取CSV (15:22)
(T7-7)用LumenWorksCsvReader讀取CSV,討論exception處理方式 (6:28)
(T7-8)用LumenWorksCsvReader、YieldReturn讀取CSV (3:36)
(T7-9)用LumenWorksCsvReader、YieldReturn讀取CSV,討論exception處理方式 (4:25)
(T7-10)用Linq讀取CSV (11:47)
(T7-11)用Linq讀取CSV,討論exception處理方式 (3:54)
(T7-12)用Linq、YieldReturn讀取CSV (3:01)
(T7-13)用Linq、YieldReturn讀取CSV,討論exception處理方式 (5:18)
(T8-1)前置準備 (7:43)
(T8-2)用Linq讀取Xml。討論Where、OrderBy、Let (21:42)
(T8-3)用Linq讀取Xml (4:51)
(T8-4)用Linq讀取Xml,討論exception處理方式 (4:44)
(T8-5)用Linq、YieldReturn讀取Xml (4:56)
(T8-6)用Linq、YieldReturn讀取Xml,討論exception處理方式 (5:22)
(T9)使用EfCodeFirst(. NetFramework)讀取Sql (19:50)
(T10-1)建立Database (4:41)
(T10-2)在VS2017Community、VS2013Pro建立MSTestProject (8:40)
(T10-3)準備好XML和CSV (4:20)
(T10-4)Part1,用MSTest設定App.config測試SQLServer、XML、CSV裡面的Data (24:50)
(T10-5)Part2,用MSTest設定App.config測試SQLServer、XML、CSV裡面的Data (17:00)
(T11-1)建立Database (4:56)
(T11-2)建立Xml、Csv (7:31)
(T11-3)用MSTest的DataSourceAttibute測試Xml、Csv、SqlServer的Data (15:29)
(T11-4)用EfCodeFirst(. NetFramework)讀取SqlServer的Data (10:26)
(T11-5)用NUnit的前置準備 (3:49)
(T11-6)討論TestCase (9:59)
(T11-7)討論TestCaseSource測試GlobalVariable (5:07)
(T11-8)討論TestCaseSource測試有參數的Method (12:39)
(T11-9)討論TestCaseSource測試其他Class的Method (4:09)
(T11-10)討論TestCaseSource測試有實作IEnumerable的Class (2:26)
(T11-11)討論TestCaseSource測試其他Class (4:02)
(T11-12)討論TestCaseSource測試有和沒有Yield Return的其他Class的Method (3:33)
(T11-13)討論NUnit的TestCaseSourceAttribute去抓IEnumerableT的Data (18:50)
(T11-14)用NUnit的TestCaseSourceAttribute測試Csv的Data (19:11)
(T11-15)用NUnit的TestCaseSourceAttribute、YieldReturn測試Csv的Data (6:22)
(T11-16)用NUnit的TestCaseSourceAttribute測試Xml的Data (11:06)
(T11-17)用NUnit的TestCaseSourceAttribute、EfCodeFirst(. NetFramework)測試SqlServerDatabase的Data (5:45)
討論MSTest、NUnit的TestExecutionLifeCycle、TimeOutAttribute、IgnoreAttribute、OrderTest
(T12-1)TestInitialize、TestCleanup、ClassInitialize、ClassCleanup、AssemblyInitialize、AssemblyCleanup (23:09)
(T12-2)在MSTest的TestInitialize、ClassInitialize中的變數存活 (14:45)
(T13-1)前置準備 (3:36)
(T13-2)MSTest的TestClass的TestInitialize、TestCleanup的Output用法和限制 (23:58)
(T13-3)MSTest的TestClass的ClassInitialize、ClassCleanup的Output用法和限制 (16:49)
(T13-4)MSTest的TestClass的AssemblyInitialize、AssemblyCleanup的Output用法和限制 (25:46)
(T13-5)NUnit的TestFixture的SetUp、TearDown的Output用法和限制 (30:24)
(T13-6)NUnit的TestFixture的OneTimeSetUp、OneTimeTearDown的Output用法和限制 (20:32)
(T13-7)NUnit的SetUpFixture的OneTimeSetUp、OneTimeTearDown的Output用法和限制 (24:51)
(T13-8)Summary總結 (22:04)
(T13-9)Console.Writeline、output的補充 (15:36)
(T14-1)MSTest的TimeOutAttribute、IgnoreAttribute (7:26)
(T14-2)NUnit的TimeOutAttribute、IgnoreAttribute (10:30)
(T15-1)前置作業 (3:48)
(T15-2)用NUnit的OrderAttribute來OrderTest (17:54)
(T15-3)不建議用MSTest執行OrderTests (37:39)
(T15-4)Summary。不建議用MSTest、NUnit的OrderTest (7:14)
用CommandLine跑MSTest、NUnit
(T16-1)前置作業 (7:29)
(T16-2)複習MSTest的Traits(特徵) (5:48)
(T16-3)用CommandLine跑MSTest (24:03)
(T16-4)複習NUnit的Traits(特徵) (8:18)
(T16-5)用CommandLine跑NUnit (21:03)
討論Assert
(T17-1)T17toT29-討論Equals、GetHashCode (15:03)
(T17-2)T17toT29-討論IComparer、Compare (11:53)
(T17-3)T17toT29-建立MathematicsClass (5:24)
(T18-1)T17toT29-討論MSTest的StringAssert的StartsWith、EndsWith、Contains、Matches、DoesNotMatch (18:00)
(T18-2)T17toT29-討論NUnit的StringAssert的StartsWith、EndsWith、Contains、Matches、DoesNotMatch (15:44)
(T19-1)T17toT29-MSTest的Assert.Fail、Assert.Inconclusive (8:55)
(T19-2)T17toT29-NUnit的Assert.Fail、Assert.Inconclusive、Assert.Warn (18:21)
(T20-1)T17toT29-MSTest的Assert的IsTrue、IsFalse、IsNull、IsNotNull、IsInstanceOfType、IsNotInstanceOfType (11:21)
(T20-2)T17toT29-NUnit的Assert的IsTrue、IsFalse、IsNull、IsNotNull、IsInstanceOf、IsNotInstanceOf (8:11)
(T21-1)T17toT29-討論Assert一個ValueType物件。MSTest的AreEqual、AreSame、AreNotEqual、AreNotSame (26:18)
(T21-2)T17toT29-討論Assert一個ComplexType物件。MSTest的AreEqual、AreSame、AreNotEqual、AreNotSame (13:30)
(T21-3)T17toT29-討論Assert一個ValueType物件。NUnit的AreEqual、AreSame、AreNotEqual、AreNotSame (16:15)
(T21-4)T17toT29-討論Assert一個ComplexType物件。NUnit的AreEqual、AreSame、AreNotEqual、AreNotSame (15:07)
(T22-1)T17toT29-測試簡單型別Collection,MSTest的AreEqual (8:55)
(T22-2)T17toT29-測試泛型Collection,MSTest的Contains、IsSubsetOf、AllItemsAre((Not)Unique、InstancesOfType) (30:18)
(T22-3)T17toT29-測試簡單型別Collection,NUnit的AreEqual (4:08)
(T22-4)T17toT29-測試泛型Collection,NUnit的Contains、IsSubsetOf、AllItemsAre((Not)Unique、InstancesOfType) (25:29)
(T23-1)T17toT29-MSTest的Assert.That (4:02)
(T23-2)T17toT29-NUnit的Assert.That搭配All (7:11)
(T23-3)T17toT29-NUnit的Assert.That搭配Not (15:33)
(T23-4)T17toT29-NUnit的Assert.That搭配Does (2:33)
(T23-5)T17toT29-NUnit的Assert.That搭配Has (7:11)
(T23-6)T17toT29-NUnit的Assert.That搭配Or、And (3:07)
(T24-1)T17toT29-NUnit的Assert.That測試String (9:20)
(T24-2)T17toT29-NUnit的Assert.That測試Numerical (5:14)
(T24-3)T17toT29-NUnit的Assert.That測試Null (1:15)
(T24-4)T17toT29-NUnit的Assert.That測試Bool (1:59)
(T24-5)T17toT29-NUnit的Assert.That測試Range (3:13)
(T25)T17toT29-NUnit的Assert.That測試一個ComplexType (24:46)
(T26-1)T17toT29-NUnit的Assert.That測試StringArray (21:02)
(T26-2)T17toT29-NUnit的Assert.That測試StringCollection (2:53)
(T26-3)T17toT29-NUnit的Assert.That測試IntCollection (2:13)
(T26-4)T17toT29-NUnit的Assert.That測試ComplexObjectsCollection、IComparer (10:22)
(T26-5)T17toT29-NUnit的Assert.That測試ComplexObjectsCollection (32:28)
(T27)T17toT29-NUnit的Assert.Multiple (7:17)
(T28-1)T17toT29-MSTest的ExpectedExceptionAttribute (7:50)
(T28-2)T17toT29-NUnit的Assert.Throws (8:16)
(T29-1)T17toT29-討論ParameterizedTests(有參數的測試)。NUnit的TestCase (13:26)
(T29-2)T17toT29-討論ParameterizedTests(有參數的測試)。MSTest只能用大量的TestMethod (5:51)
討論TestDrivenDevelopment(TDD)
(T30)T30toT31-討論TestDrivenDevelopment(TDD)。Red、Green、Refactor (13:09)
(T31)T30toT31-討論TDD。Facking、Red、Green、TriangulationRefactor、ObviousImplementation (24:58)
課程評價
課程評價
(T24-5)T17toT29-NUnit的Assert.That測試Range
Lesson content locked
If you're already enrolled,
you'll need to login
.
Enroll in Course to Unlock