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
public class Approvals | |
{ | |
//Default implementation works as before | |
static Func<IApprovalNamer> _defaultNamerSource = (()=> new UnitTestFrameworkNamer()); | |
//Extension point to allow injection of new default namer | |
//at runtime, as vb6 does not support attributes, nor stacktraces. | |
public static Func<IApprovalNamer> DefaultNamerSource | |
{ | |
private get { return _defaultNamerSource; } |
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
namespace ApprovalTests.StackTraceParsers | |
{ | |
public class StackTraceParser : IStackTraceParser | |
{ | |
private static IStackTraceParser[] parsers; | |
private IStackTraceParser parser; | |
public bool Parse(StackTrace stackTrace) | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using FakeItEasy; | |
using NUnit.Framework; | |
using Simple.Data.FakeResult; | |
namespace TestingWithSimpleDataFakeResult | |
{ | |
[TestFixture] | |
public class RepositoryUsingSimpleDataTests |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Events</title> | |
</head> | |
<body> | |
<h1>Events</h1> | |
<table> | |
<thead> | |
<tr> |
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
Building: Simple.Data.Mysql (Debug) | |
Building Solution Simple.Data.Mysql | |
Building: Simple.Data.Mysql.Mysql40 (Debug) | |
Performing main compilation... | |
Compiling resource /home/vidarls/Simple.Data.Mysql/Src/Simple.Data.Mysql.Mysql40/Properties/Resources.resx with /usr/bin/resgen | |
/usr/bin/dmcs /noconfig "/out:/home/vidarls/Simple.Data.Mysql/Src/Simple.Data.Mysql.Mysql40/bin/Debug/Simple.Data.Mysql.Mysql40.dll" "/r:/home/vidarls/Simple.Data.Mysql/Src/packages/Simple.Data.Core.0.16.1.0/lib/net40/Simple.Data.dll" "/r:/home/vidarls/Simple.Data.Mysql/Src/packages/Simple.Data.Ado.0.16.1.0/lib/net40/Simple.Data.Ado.dll" "/r:/usr/lib/mono/4.0/System.dll" "/r:/usr/lib/mono/4.0/System.ComponentModel.Composition.dll" "/r:/usr/lib/mono/4.0/System.Core.dll" "/r:/usr/lib/mono/4.0/System.Data.dll" "/r:/usr/lib/mono/4.0/System.Xml.Linq.dll" "/r:/usr/lib/mono/4.0/System.Data.DataSetExtensions.dll" "/r:/usr/lib/mono/4.0/Microsoft.CSharp.dll" "/r:/usr/lib/mono/4.0/System.Xml.dll" /nologo /warn:4 /debug:+ /debug:full /optimize- /c |
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
using System.Drawing; | |
using System.Linq; | |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Windows.Forms; | |
namespace RayTracer { | |
public class RayTracer { |
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
using NetMQ; | |
using System; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace NetMQIssue | |
{ | |
class Program | |
{ |
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
//Example use | |
Target "BuildVb6" (fun _ -> | |
!! "src/**/*.vbp" | |
|> Vb6Make (fun c -> | |
{ c with | |
Logdir = temp | |
Outdir = bin }) | |
) |
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
#r @"packages/FAKE/tools/FakeLib.dll" | |
open Fake | |
open System | |
open System.IO | |
type FxVersion = | |
| Net4 | |
| Net35 |
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
open System | |
open System.IO | |
type Period = {Start:DateTime; End:DateTime;} | |
let data = File.ReadAllLines("maildatoer.txt") | |
|> List.ofArray | |
|> List.map (fun timeString -> timeString.Trim('"')) | |
|> List.map DateTime.Parse | |
|> List.choose (fun parsedTime -> |
OlderNewer