NUnit.Framework.Assert.That(ref string, NUnit.Framework.Constraints.IResolveConstraint)

Here are the examples of the csharp api class NUnit.Framework.Assert.That(ref string, NUnit.Framework.Constraints.IResolveConstraint) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: NugetCracker
Source File: TestExtensions.cs
View license
[Test]
		public void TestCompatibleFramework()
		{
			Assert.IsNull("v2.0".CompatibleFramework("v1.0/n ..... /n //View Source file for more details /n }

2. Example

Project: NugetCracker
Source File: TestExtensions.cs
View license
[Test]
		public void TestSetVersion()
		{
			var filename = Path.GetTempFileName();
			try {
				File.WriteAllText(filename, @"
[assembly: AssemblyVersion(""1.0.0.0"")]
[assembly: AssemblyFileVersion(""1.0.0.0"")]");
				filename.SetVersion(new Version(0, 8, 3, 0));
				var text = File.ReadAllText(filename);
				Assert.That<string>(ref text, Is.StringContaining("AssemblyVersion(\"0.8.3.0\")"));
				Assert.That<string>(ref text, Is.StringContaining("AssemblyFileVersion(\"0.8.3.0\")"));
			} finally {
				if (File.Exists(filename))
					File.Delete(filename);
			}
		}