Created
September 12, 2014 23:03
-
-
Save urasandesu/0b0614778be6ba2536c8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using NUnit.Framework; | |
using System.Collections.Generic; | |
namespace ClassLibrary | |
{ | |
[TestFixture] | |
public class ChainingAssertionDemo | |
{ | |
[Test] | |
public void IsStructuralEqual_should_be_make_easily_understandable_message_for_IDictionaryOfTKeyOfTValue() | |
{ | |
var expected = new SortedDictionary<string, string>() { { "orange", "1" }, { "apple", "4" }, { "cucumber", "6" } }; | |
expected["banana"] = "7"; | |
expected["pineapple"] = "7"; | |
var actual = new SortedDictionary<string, string>() { { "orange", "1" }, { "apple", "4" }, { "cucumber", "6" } }; | |
actual["banana"] = "6"; | |
actual["pineapple"] = "7"; | |
actual.IsStructuralEqual(expected); | |
// PS Debug> & "C:\Program Files (x86)\NUnit 2.6.3\bin\nunit-console.exe" ClassLibrary.dll /domain=None /framework=v4.0 | |
// NUnit-Console version 2.6.3.13283 | |
// Copyright (C) 2002-2012 Charlie Poole. | |
// Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov. | |
// Copyright (C) 2000-2002 Philip Craig. | |
// All Rights Reserved. | |
// | |
// Runtime Environment - | |
// OS Version: Microsoft Windows NT 6.2.9200.0 | |
// CLR Version: 2.0.50727.8009 ( Net 3.5 ) | |
// | |
// ProcessModel: Default DomainUsage: None | |
// Execution Runtime: v4.0 | |
// .F | |
// Tests run: 1, Errors: 0, Failures: 1, Inconclusive: 0, Time: 0.108492271200744 seconds | |
// Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 | |
// | |
// Errors and Failures: | |
// 1) Test Failure : ClassLibrary.ChainingAssertionDemo.IsStructuralEqual_should_be_make_easily_understandable_message_for_IDictionaryOfTKeyOfTValue | |
// is not structural equal, failed at SortedDictionary`2.[1].Value, actual = 6 expected = 7 | |
// 場所 ClassLibrary.ChainingAssertionDemo.IsStructuralEqual_should_be_make_easily_understandable_message_for_IDictionaryOfTKeyOfTValue() 場所 c:\Users\Akira\Documents\Visual Studio 2013\Projects\ClassLibrary\ClassLibrary\Class1.cs:行 19 | |
// | |
// | |
// PS Debug> | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment