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() |
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
function TypeToIdentity { | |
param ( | |
[type] | |
$Type | |
) | |
if ($Type.HasElementType) { | |
$typeIdentity = TypeToIdentity $Type.GetElementType() | |
} else { | |
$typeIdentity = $Type.Name |
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
namespace System | |
{ | |
public struct DateTime | |
{ | |
public static DateTime Now | |
{ | |
get | |
{ | |
try | |
{ |
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 System; | |
namespace ConsoleApplication | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var interceptor = default(Func<Func<DateTime>, Func<DateTime>>); | |
interceptor = indirection => () => |
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 System.ComponentModel; | |
using Urasandesu.Prig.Framework; | |
namespace System.Collections.Generic.Prig | |
{ | |
public class PList<T> : PListBase | |
{ | |
public static zzAdd Add() | |
{ |
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
module Fake | |
refine Time.singleton_class do | |
def now | |
Time.local(2014, 1, 1) | |
end | |
end | |
end | |
def puts_original | |
p Time.now |
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 FakeItEasy; | |
using NUnit.Framework; | |
using System; | |
using System.ComponentModel; | |
using System.Prig; | |
using Urasandesu.Prig.Framework; | |
namespace MockingDelegatesSample | |
{ | |
[TestFixture] |
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 Rhino.Mocks; | |
using System; | |
using System.ComponentModel; | |
using System.Prig; | |
using Urasandesu.Prig.Framework; | |
namespace MockingDelegatesSample | |
{ | |
[TestFixture] |
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 NSubstitute; | |
using NUnit.Framework; | |
using System; | |
using System.ComponentModel; | |
using System.Prig; | |
using Urasandesu.Prig.Framework; | |
namespace MockingDelegatesSample | |
{ | |
[TestFixture] |
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 Moq; | |
using NUnit.Framework; | |
using System; | |
using System.ComponentModel; | |
using System.Prig; | |
using System.Runtime.CompilerServices; | |
using Urasandesu.Prig.Framework; | |
namespace MockingDelegatesSample | |
{ |