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

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

5 Examples 7

1. Example

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

2. Example

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

3. Example

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

4. Example

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

5. Example

Project: keepassrpc
Source File: TestExportContext.cs
private static void AssertInStock(Type expected, Type type)
        {
            ExportContext context = new ExportContext();
            IExporter exporter = context.FindExporter(type);
            Assert.IsNotNull(exporter, "No exporter found for {0}", type.FullName);
            Assert.AreSame(type, exporter.InputType, "{0} reported {1} when expecting {2}.", exporter, exporter.InputType, type);
            Assert.IsInstanceOfType(expected, exporter, type.FullName);
        }