HelpContentTests.cs 1.5 KB

1234567891011
  1. using DevilLink2.UI;using NUnit.Framework;
  2. namespace DevilLink2.Tests
  3. {
  4. public sealed class HelpContentTests
  5. {
  6. [Test] public void AllElevenFaqQuestionsRetainedInOriginalOrder()
  7. {Assert.That(HelpContent.Faq.Count,Is.EqualTo(11));string[] questions={"How do I clear a pair?","What if I pick a wrong pair?","How do levels work?","How does each mode get harder?","What do I get for clearing a level?","How is the score calculated?","What items are there and what do they cost?","Where do coins come from?","How does the weekly check-in work?","How does the wheel work?","Where is my progress saved?"};for(int i=0;i<11;i++){Assert.That(HelpContent.Faq[i].Question,Is.EqualTo(questions[i]));Assert.That(HelpContent.Faq[i].Answer.Length,Is.GreaterThan(80));}}
  8. [Test] public void FaqKeepsSelectionPenaltyAndEconomyRules(){Assert.That(HelpContent.Faq[1].Answer,Does.Contain("3 seconds"));Assert.That(HelpContent.Faq[1].Answer,Does.Contain("no penalty"));Assert.That(HelpContent.Faq[6].Answer,Does.Contain("Hint 2,000 · Shuffle 5,000 · +30 Seconds 3,000"));Assert.That(HelpContent.Faq[5].Answer,Does.Contain("4 seconds"));}
  9. [Test] public void HowToRetainsFullRulesModesAndSourceDetails(){foreach(string text in new[]{"same symbol","at most 2 turns","empty cells","−3s","reshuffles for free","Clear every tile","100","×5","1 ticket","Classic","Time Attack","Zen","Hint (2,000)","Shuffle (5,000)","+30s (3,000)","horizontal and vertical","one empty border","Imp, Trident","4 seconds"})Assert.That(HelpContent.HowToPlay,Does.Contain(text));}
  10. }
  11. }