public void TestInvalidCharacters(string fileName)
		{
			using (ApprovalResults.ForScenario(fileName))
			{
				var name = new UnitTestFrameworkNamer().Name;
				Assert.Equal("XunitTheoryStackTraceParserTest.TestInvalidCharacters.ForScenario.File _;___1.txt", name);
			}
		}
		public void TestApprovalNameWithAdditionalInformation(string fileName)
		{
			using (ApprovalResults.ForScenario(fileName))
			{
				var name = new UnitTestFrameworkNamer().Name;
				Assert.Equal("XunitTheoryStackTraceParserTest.TestApprovalNameWithAdditionalInformation.ForScenario." + fileName,
				             name);
			}
		}
        public async Task AsyncTestApprovalName()
        {
            var name = new UnitTestFrameworkNamer().Name;
            var path = new UnitTestFrameworkNamer().SourcePath;

            await AnAsyncMethod();

            Assert.Equal("XunitStackTraceNamerTest.AsyncTestApprovalName", name);
            Assert.True(File.Exists(path + "\\XunitStackTraceNamerTest.cs"));
        }
 public void TestApprovalName()
 {
     var name = new UnitTestFrameworkNamer().Name;
     Assert.Equal("XunitStackTraceNamerTest.TestApprovalName", name);
 }
 public void TestSourcePath()
 {
     string name = new UnitTestFrameworkNamer().SourcePath;
     var path = name.ToLower() + "\\VsTestStackTraceNamerTests.cs";
     Assert.IsTrue(File.Exists(path), path + " does not exist" );
 }
 public void TestApprovalName()
 {
     string name = new UnitTestFrameworkNamer().Name;
     Assert.AreEqual("VsTestStackTraceNamerTests.TestApprovalName", name);
 }
		public void TestSourcePath()
		{
			var name = new UnitTestFrameworkNamer().SourcePath;
			var expectedPath = @"ApprovalTests.Net\ApprovalTests.Tests\Namer\Foo".Replace(@"\", System.IO.Path.DirectorySeparatorChar.ToString());
			StringAssert.Contains(expectedPath, name);
		}
 public void TestSourcePath()
 {
     string name = new UnitTestFrameworkNamer().SourcePath;
                 var path = name.ToLower() + "\\"+ this.GetType().Name+".cs";
                 Assert.IsTrue(File.Exists(path), path + " does not exist");
 }
		public void TestSourcePath()
		{
			var name = new UnitTestFrameworkNamer().SourcePath;
			Assert.IsTrue(name.Contains(@"ApprovalTests.Net\ApprovalTests.Tests\Namer\Foo"),name);
		}
		public virtual void TestCaseAttributes(string caseName)
		{
			NamerFactory.AdditionalInformation = caseName;
			var name = new UnitTestFrameworkNamer().Name;
			Assert.AreEqual("NunitStackTraceNamerTests.TestCaseAttributes." + caseName, name);
		}