NUnit.Framework.Assert.AreNotEqual(object, object, string, params object[])

Here are the examples of the csharp api class NUnit.Framework.Assert.AreNotEqual(object, object, string, params object[]) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

15 Examples 7

1. Example

Project: 32feet
Source File: Assert.cs
View license
static public void AreNotEqual(Object expected, Object actual) 
		{
			Assert.AreNotEqual(expected, actual, string.Empty, null);
		}

2. Example

Project: 32feet
Source File: Assert.cs
View license
static public void AreNotEqual(Object expected, Object actual, string message) 
		{
			Assert.AreNotEqual(expected, actual, message, null);
		}

3. Example

Project: 32feet
Source File: Assert.cs
View license
static public void AreNotEqual(Object expected, Object actual, string message) 
		{
			Assert.AreNotEqual(expected, actual, message, null);
		}

4. Example

Project: 32feet
Source File: Assert.cs
View license
static public void AreNotEqual(Object expected, Object actual) 
		{
			Assert.AreNotEqual(expected, actual, string.Empty, null);
		}

5. Example

View license
[Test]
		public void TestRefAssembliesChange()
		{
			TemplateInfo ti = Cache.CompileTemplate(@"<template></template>", Globals, RefAssemblies);
			string hash1 = ti.TemplateKey;

			RefAssemblies.Clear();

			ti = Cache.CompileTemplate(@"<template></template>", Globals, RefAssemblies);
			string hash2 = ti.TemplateKey;
			Assert.AreNotEqual(hash1, hash2, "Template re-generation if referenced assemblies change failed. Hash1: {0}, Hash2: {1}", hash1, hash2);
		}

6. Example

View license
[Test]
		public void TestTemplateChange()
		{
			TemplateInfo ti = Cache.CompileTemplate(@"<template></template>", Globals, RefAssemblies);
			string hash1 = ti.TemplateKey;

			ti = Cache.CompileTemplate(@"<template2></template2>", Globals, RefAssemblies);
			string hash2 = ti.TemplateKey;
			Assert.AreNotEqual(hash1, hash2, "Template re-generation if template change failed. Hash1: {0}, Hash2: {1}", hash1, hash2);
		}

7. Example

View license
[Test]
		public void TestTemplateChange()
		{
			TemplateInfo ti = Cache.CompileTemplate(@"<template></template>", Globals, RefAssemblies);
			string hash1 = ti.TemplateKey;

			ti = Cache.CompileTemplate(@"<template2></template2>", Globals, RefAssemblies);
			string hash2 = ti.TemplateKey;
			Assert.AreNotEqual(hash1, hash2, "Template re-generation if template change failed. Hash1: {0}, Hash2: {1}", hash1, hash2);
		}

8. Example

View license
[Test]
		public void TestGlobalsChange()
		{
			TemplateInfo ti = Cache.CompileTemplate(@"<template></template>", Globals, RefAssemblies);
			string hash1 = ti.TemplateKey;

			Globals.Add("the_string_2", typeof(string));

			ti = Cache.CompileTemplate(@"<template></template>", Globals, RefAssemblies);
			string hash2 = ti.TemplateKey;
			Assert.AreNotEqual(hash1, hash2, "Template re-generation if Globals types change failed. Hash1: {0}, Hash2: {1}", hash1, hash2);
		}

9. Example

View license
[Test]
		public void TestRefAssembliesChange()
		{
			TemplateInfo ti = Cache.CompileTemplate(@"<template></template>", Globals, RefAssemblies);
			string hash1 = ti.TemplateKey;

			RefAssemblies.Clear();

			ti = Cache.CompileTemplate(@"<template></template>", Globals, RefAssemblies);
			string hash2 = ti.TemplateKey;
			Assert.AreNotEqual(hash1, hash2, "Template re-generation if referenced assemblies change failed. Hash1: {0}, Hash2: {1}", hash1, hash2);
		}

10. Example

View license
[Test]
		public void TestGlobalsChange()
		{
			TemplateInfo ti = Cache.CompileTemplate(@"<template></template>", Globals, RefAssemblies);
			string hash1 = ti.TemplateKey;

			Globals.Add("the_string_2", typeof(string));

			ti = Cache.CompileTemplate(@"<template></template>", Globals, RefAssemblies);
			string hash2 = ti.TemplateKey;
			Assert.AreNotEqual(hash1, hash2, "Template re-generation if Globals types change failed. Hash1: {0}, Hash2: {1}", hash1, hash2);
		}

11. Example

Project: msgpack-cli
Source File: DirectoryAssert.cs
View license
static public void AreNotEqual(DirectoryInfo expected, DirectoryInfo actual, string message, params object[] args)
        {
            Assert.AreNotEqual(expected, actual, message, args);
        }

12. Example

Project: nunit
Source File: DirectoryAssert.cs
View license
static public void AreNotEqual(DirectoryInfo expected, DirectoryInfo actual, string message, params object[] args)
        {
            Assert.AreNotEqual(expected, actual, message, args);
        }

13. Example

View license
[Test]
		public void TestImportChange()
		{
			const string templateBody = @"<template metal:import='TestImportChange_Imports.xml'></template>";

			File.WriteAllText("TestImportChange_Imports.xml", "<import1></import1>");

			TemplateInfo ti = Cache.CompileTemplate(templateBody, Globals, RefAssemblies);
			string hash1 = ti.TemplateKey;

			File.WriteAllText("TestImportChange_Imports.xml", "<import2></import2>");

			ti = Cache.CompileTemplate(templateBody, Globals, RefAssemblies);
			string hash2 = ti.TemplateKey;
			Assert.AreNotEqual(hash1, hash2, "Template re-generation if referenced assemblies change failed. Hash1: {0}, Hash2: {1}", hash1, hash2);
		}

14. Example

View license
[Test]
		public void TestImportChange()
		{
			const string templateBody = @"<template metal:import='TestImportChange_Imports.xml'></template>";

			File.WriteAllText("TestImportChange_Imports.xml", "<import1></import1>");

			TemplateInfo ti = Cache.CompileTemplate(templateBody, Globals, RefAssemblies);
			string hash1 = ti.TemplateKey;

			File.WriteAllText("TestImportChange_Imports.xml", "<import2></import2>");

			ti = Cache.CompileTemplate(templateBody, Globals, RefAssemblies);
			string hash2 = ti.TemplateKey;
			Assert.AreNotEqual(hash1, hash2, "Template re-generation if referenced assemblies change failed. Hash1: {0}, Hash2: {1}", hash1, hash2);
		}

15. Example

Project: libpalaso
Source File: CloneableTests.cs
View license
[Test]
		//x.Equals(default) && y.Equals(default) (y/x are left on their default values)
		//though /n ..... /n //View Source file for more details /n }