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 ComplexBusinessOperations | |
{ | |
private int moneyEarnedSoFar; | |
public int MoneyEarnedSoFar | |
{ | |
get { return moneyEarnedSoFar; } | |
} | |
public void EarnMoney(int investment) |
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 ComplexBusinessOperations | |
{ | |
private int moneyEarnedSoFar; | |
public int MoneyEarnedSoFar | |
{ | |
get { return moneyEarnedSoFar; } | |
} | |
public void EarnMoney(int investment) |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using NUnit.Framework; | |
namespace Samples { | |
public class AssertRequired<TResult> where TResult : class, new() { |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using NUnit.Framework; | |
namespace Samples { | |
public static class AssertPlus { |
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 AbstractLocalSyncRunner { | |
protected AbstractLocalSyncRunner() { | |
} | |
protected virtual void RunAsyncCore(ILocalSynchronizationContextRef inLocalContext, Func<SynchronizationContext, Task> inTestAction) { | |
inLocalContext.Start(); | |
try { | |
inLocalContext.Reference.Post(obj => { | |
var task = inTestAction(inLocalContext.Reference); |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using NUnit.Framework; | |
namespace Common.Test { | |
public static class AssertRequiedExtensions { |
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
Get-Process -name "MSBuild" | foreach {Stop-Process -id $_.id} |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using NUnit.Framework; | |
namespace Sample { | |
[TestFixture] | |
public class EnumerableTest { | |
[Test] |
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
[Test] | |
public void _最初に数字が出たところから末尾までの文字列を返す() { | |
var needle = Enumerable.Range(0, 10).Select(c => (char)('0' + c)).ToArray(); | |
var text1 = "qazxdftyujh6olkmnbgfds"; | |
var i1 = text1.IndexOfAny(needle); | |
var actual1 = i1 >= 0 ? text1.Substring(i1) : ""; | |
Assert.That(actual1, Is.EqualTo("6olkmnbgfds")); | |
var text2 = "qsxcvhikol,kmjbgvf"; |
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
// | |
// Test by mocha | |
// | |
XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest; | |
var cli = require('../client/js/socket.io'); // Socket.io client module | |
var should = require('should'); | |
// The global.location is necessary |