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 StructInstanceMethodSample | |
{ | |
public class DateTimeHelper | |
{ | |
public static DateTime ConvertServerTimeToTimeZoneTime(DateTime inputDateTime, string zoneId, bool __no_use__) | |
{ | |
// dummy implementation | |
var utcDateTime = inputDateTime.ToUniversalTime(); |
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 Moq.Language; | |
using NUnit.Framework; | |
using Ploeh.AutoFixture; | |
using Ploeh.AutoFixture.Kernel; | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Diagnostics; | |
using System.Diagnostics.Prig; |
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
#PSUnit: Setting up PATH environment variable to point to PSUnit framework | |
$PSUnitPath = "C:\psunit-2-beta-1-24978" #Modify this path to match your local PowerShell installation path | |
#Make sure to only append this path once | |
if (!($env:path -like "*$PSUnitPath*")) | |
{ | |
$env:path = $env:path + ";$PSUnitPath" | |
} | |
#PSUnit: Setting PSUNIT_HOME environment variable to point to PSUnit framework | |
If(! $(Test-Path -Path "env:PSUNIT_HOME")) | |
{ |
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
@(33..126 | Get-Random -Count 8 | % { [char]$_ }) -join '' | |
# sample result: | |
# 0_&fp$Se |
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
2015/11/18 22:00:57 - Microsoft VSIX Installer | |
2015/11/18 22:00:57 - ------------------------------------------- | |
2015/11/18 22:00:57 - Initializing Install... | |
2015/11/18 22:00:57 - 拡張機能の詳細... | |
2015/11/18 22:00:57 - Identifier : 0a06101d-8de3-40c4-b083-c5c16ca227ae | |
2015/11/18 22:00:57 - Name : Prig Test Adapter | |
2015/11/18 22:00:57 - Author : Urasandesu | |
2015/11/18 22:00:57 - Version : 2.0.0 | |
2015/11/18 22:00:57 - Description : Visual Studio Integrated Test Adapter for Prig. Prig(PRototyping jIG) is a framework that generates a Test Double like Microsoft Fakes/Typemock Isolator/Telerik JustMock based on Unmanaged Profiler APIs. This framework enables that any methods are replaced with mocks. For example, a static property, a private method, a non-virtual member and so on. | |
2015/11/18 22:00:57 - Locale : en-US |
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.Linq; | |
using System.Reflection.Emit; | |
namespace ConvertDelegateWithoutCast | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
# | |
# File: Get-HelpByMarkdown.ps1 | |
# | |
# Author: Akira Sugiura ([email protected]) | |
# | |
# | |
# Copyright (c) 2014 Akira Sugiura | |
# | |
# This software is MIT License. | |
# |
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
// ConsoleApplication43.cpp : コンソール アプリケーションのエントリ ポイントを定義します。 | |
// | |
#include "stdafx.h" | |
namespace z3 { | |
class context_ex : | |
public context |
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; | |
namespace MoqVerifyBehaviorDemo | |
{ | |
[TestFixture] | |
public class MoqVerifyBehaviorTest | |
{ | |
[Test] | |
public void Setup_with_argument_matcher_and_Setup_with_constant_should_be_same_behavior() |
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 FluentAssertions; | |
using NUnit.Framework; | |
using System.Collections.Generic; | |
namespace ClassLibrary | |
{ | |
[TestFixture] | |
public class FluentAssertionsSample | |
{ | |
[Test] |