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
さらば不具合 輝く緑は | |
テスト駆動TDD | |
小さな機能 実装のため | |
テストを書いて 今始める | |
赤いバーを 緑にするため | |
ソースに書き込む 仮実装 | |
緑を保ち リファクタリング | |
黄金の回転 テスト駆動TDD | |
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 NUnit.Framework; | |
using FizzBuzz; | |
namespace FizzBuzzTest | |
{ | |
[TestFixture] | |
public class UnitTest1 | |
{ | |
[Test] |
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 System.Linq; | |
using System.Text; | |
using NUnit.Framework; | |
using OpenQA.Selenium; | |
using OpenQA.Selenium.IE; | |
using OpenQA.Selenium.Support.UI; | |
namespace SeleniumDemo |
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 (SPSite site = new SPSite(context.SiteUrl)) | |
using (var web = site.OpenWeb(context.WebUrl)) | |
{ | |
var list = web.Lists[context.ListId]; | |
var item = list.Items.GetItemById(itemId); | |
var value = item["フィールド名"]; //ここで例外が発生 | |
} |
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 System.Linq; | |
using System.Text; | |
using System.ComponentModel; | |
using System.Reflection; | |
namespace EnumDescriptionSample | |
{ | |
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
Option Explicit | |
'VbLiteUnitを読み込みます | |
Implements ITestCase | |
Private Function ITestCase_TestCaseInstance() As ITestCase | |
Dim objResult As New ClassTest '自テストClass名を記載 | |
Debug.Assert TypeName(objResult) = TypeName(Me) | |
Set ITestCase_TestCaseInstance = objResult | |
End Function |
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 UnityEngine; | |
using System.Collections; | |
public class MarioController: MonoBehaviour { | |
float WalkSpeed=3.0f; //歩く速度 | |
float Gravity=20.0f; //重力係数 | |
float JumpSpeed=8.0f; //ジャンプ加速度 | |
private Vector3 velocity; //現在の速度 | |
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
Dim Array() As Integer = {1, 10, 30, 40, 50, 70, 80, 90} | |
'50以上の値の数(for) | |
Dim Count As Integer | |
Dim I As Long | |
For I = 0 To Array.Length - 1 | |
If Array(I) >= 50 Then | |
Count = Count + 1 | |
End If | |
Next |
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
int[] array = { 1, 10, 30, 40, 50, 70, 80, 90 }; | |
//50以上の値の数(for) | |
int count = 0; | |
for (int i = 0; i < array.Length; i++) | |
{ | |
if (array[i] >= 50) | |
{ | |
count++; | |
} |
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
var list=new List<string> | |
{ | |
"リンゴ", | |
"オレンジ", | |
"パイナップル" | |
}; | |
//toDictionary(int,string)に変換 | |
var dic = list.Select((n, index) => new { index, n}) |
NewerOlder