public void MustLoadMultipleTalks() { var talk = new List<string>() { "Ruby vs. Clojure for Back-End Development lightning", "Ruby vs. Clojure for Back-End Development 30min" }; var loader = new TalkLoader(talk); var result = loader.Load(); Assert.IsNotNull(result); Assert.AreEqual(result.Count(), 2); }
public void MustLoadTalk() { var talk = new List<string>() { "Ruby vs. Clojure for Back-End Development 30min", }; var loader = new TalkLoader(talk); var result = loader.Load(); Assert.IsNotNull(result); Assert.IsTrue(result.Any()); Assert.AreEqual(result.First().Title, "Ruby vs. Clojure for Back-End Development"); Assert.AreEqual(result.First().Duration, new TimeSpan(0, 30, 0)); }