using Glass.Testbed; using Glass.Testbed.TestCases.Fake; using UnitTestSharp; namespace Glass.Blacklight.UnitTests { public class TestCaseTests : TestFixture { public class NameForTests : TestFixture { public void DropsTheTypeNameSuffix() { CheckEqual("Plain", TestCase.NameFor(typeof(PlainTestCase))); } public void LowercasesTheWordsAfterTheFirst() { CheckEqual("Needs world", TestCase.NameFor(typeof(NeedsWorldTestCase))); } public void KeepsATypeNameWithNoSuffix() { CheckEqual("Unsuffixed", TestCase.NameFor(typeof(Unsuffixed))); } } public class CtorTests : TestFixture { public void NamesTheCaseAndItsRootPanelForTheType() { var testCase = new PlainTestCase(); CheckEqual("Plain", testCase.Name); CheckEqual("Plain", testCase.Root.DebugName); } } } }