This file contains 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
[TestFixture] | |
public class When_testing_equivalence_or_matching_for_partially_supplied_properties | |
{ | |
private const string ExpectedName = "Expected Name"; | |
private Customer _actual; | |
private ExpectedObject _expected; | |
[Test] | |
public void Should_flag_extra_properties_on_actual_object_as_unequal() | |
{ |
This file contains 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
$('.runDisplay').hide(); | |
var RT = { | |
setup : {}, | |
warmupDuration : 5, | |
cooldownDuration : 5 | |
}; | |
var runProgram = function() { | |
RT.setup = readSetup(); |
This file contains 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
<html><body><script type="text/javascript"> | |
var myController = function() { | |
var ui = function() { | |
var show = function(message) { | |
alert("original: " + message); | |
} | |
return { show : show } | |
}(); | |
This file contains 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
bool hasMissedDeadlines = deliverables | |
.Where(d => d.Deadline < _systemClock.Today) | |
.Count() > 0; |
This file contains 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
bool hasMissedDeadlines = deliverables | |
.Any(d => d.Deadline < _systemClock.Today); |
This file contains 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
bool hasMissedDeadlines = deliverables | |
.Where(d => d.Deadline < _systemClock.Today) | |
.Count() > 0; |
This file contains 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
bool hasMissedDeadlines = deliverables | |
.Any(d => d.Deadline < _systemClock.Today); |
This file contains 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
A breakpoint in my Value Converter is never hit. Here's an excerpt of my Output window: | |
System.Windows.Data Warning: 68 : BindingExpression (hash=22895473): Found data context element: Image (hash=23663325) (OK) | |
System.Windows.Data Warning: 76 : BindingExpression (hash=22895473): Activate with root item OperatingRoomCase (hash=12289189) | |
System.Windows.Data Error: 40 : BindingExpression path error: '' property not found on 'current item of collection' ''OperatingRoomCase' (HashCode=12289189)'. BindingExpression:Path=/; DataItem='OperatingRoomCase' (HashCode=12289189); target element is 'Image' (Name=''); target property is 'Source' (type 'ImageSource') | |
System.Windows.Data Warning: 78 : BindingExpression (hash=22895473): TransferValue - got raw value {DependencyProperty.UnsetValue} | |
System.Windows.Data Warning: 86 : BindingExpression (hash=22895473): TransferValue - using fallback/default value <null> | |
System.Windows.Data Warning: 87 : BindingExpression (hash=22895473): TransferValue - using final value <null> |
This file contains 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
private void AssertStructure(string[] actualCollection, string[] expectedCollection) | |
{ | |
var actual = string.Join(",", actualCollection); | |
var expected = string.Join(",", expectedCollection.Select(s => s == "..." ? ".*" : s)).Replace(",.*", ".*").Replace(".*,", ".*"); | |
Assert.That(actual, Is.StringMatching(expected)); | |
} |
This file contains 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
.offscreen { | |
position:absolute; | |
left:-10000px; | |
top:auto; | |
width:1px; | |
height:1px; | |
overflow:hidden; | |
} |
OlderNewer