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
public class MyFixture | |
{ | |
private readonly ICloseLogFileCommand _closeCommand = Substitute.For<ICloseLogFileCommand>(); | |
private readonly ILog _log = Substitute.For<ILog>(); | |
public MyFixture() | |
{ | |
_log.Name.Returns(@"C:\Path\To\File.log"); | |
_log.Count.Returns(42); |
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
public class MyFixture | |
{ | |
private readonly ICloseLogFileCommand _closeCommand = Mock.Of<ICloseLogFileCommand>(); | |
private readonly ILog _log = Mocks.Of<ILog>(). | |
First(x => x.Name == @"C:\Path\To\File.log" && | |
x.Count == 42 && | |
x.Offset == TimeSpan.FromSeconds(69)); | |
... | |
} |
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
Fake.GetCalls(_log). | |
Single(call => call.Method.Name == "set_Offset"). | |
GetArgument<TimeSpan>(0). | |
Should().Equal(newOffset); |
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 Graeme | |
{ | |
using System.Collections.Generic; | |
using System.ComponentModel.Composition; | |
using System.Linq; | |
using CodeFest2PlayerRef; | |
[Export(typeof(ICanPlayCodeFest2))] | |
public class Player : ICanPlayCodeFest2 |
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
Sub ReplaceSpacesWithUnderscores() | |
Dim textSelection As EnvDTE.TextSelection | |
textSelection = CType(DTE.ActiveDocument.Selection(), EnvDTE.TextSelection) | |
textSelection.Text = textSelection.Text.Replace(" ", "_") | |
End Sub |
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 iDoc.specs.When | |
{ | |
[Subject("AccountManagement")] | |
public class CreatingAUserAccount : BaseContext<AccountController> | |
{ | |
const string EmailAddress = @"[email protected]"; | |
Establish context = () => | |
{ | |
model = new RegistrationModel { |
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 Tests | |
{ | |
using System.Collections.Generic; | |
using System.Linq; | |
using JsonFx.Json; | |
using Should.Fluent; | |
using Xunit; |
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
System.ArgumentException: System.ArgumentException : You must declare a backing field for this property named: _MyProperty | |
at ReactiveXaml.RxApp.getFieldInfoForProperty[TObj](String prop_name) | |
at ReactiveXaml.ReactiveNotifyPropertyChangedMixin.ObservableForProperty[TSender,TValue](TSender This, Expression`1 Property, Boolean BeforeChange) |
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
public abstract class SimpleValue<TValue> | |
{ | |
private TValue _value; | |
protected SimpleValue(TValue value) | |
{ | |
Value = value; | |
} | |
private TValue Value |
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
--------------------------- | |
Microsoft Visual Studio | |
--------------------------- | |
The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information. | |
1) The element 'metadata' in namespace 'http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd' has invalid child element 'created' in namespace 'http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd'. List of possible elements expected: 'iconUrl, dependencies, licenseUrl, projectUrl, title, tags, summary, owners' in namespace 'http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd'. | |