きょんさんの資料, 自動テストの誤解とアンチパターン in 楽天 Tech Talkを読んでもやもやしたところをつらつらと。
-
因子水準
- ググると実験計画法が出てくる
- 自由度的な意味で捉えればOK?
-
「統合テスト実装者が得る幅広いプログラミングスキルとアーキテクチャ知識である」
- 主客逆では?
きょんさんの資料, 自動テストの誤解とアンチパターン in 楽天 Tech Talkを読んでもやもやしたところをつらつらと。
因子水準
「統合テスト実装者が得る幅広いプログラミングスキルとアーキテクチャ知識である」
// Refer follwing modules: | |
// using System.Collections.Generic; | |
// using System.Net.Http; | |
// using System.Web.Script.Serialization; | |
private async void Application_Startup(object sender, StartupEventArgs e) | |
{ | |
var clientId = "xxxxxxxxxxxx"; | |
var clientSecret = "xxxxxxxxxxxxxxx"; | |
var topicId = 0; //use your topic id |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
if ( | |
System.Console.OpenStandardOutput() | |
.WriteAsync(System.Text.Encoding.Default.GetBytes("Hello Semicolonless World !!"), 0, System.Text.Encoding.Default.GetBytes("Hello Semicolonless World !!").Length) == null) | |
{ } |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Data; | |
using System.Windows.Controls; | |
using System.Windows; | |
namespace Infrastructure.Extensions | |
{ |
public static Type[] GetTypes(this Assembly assembly, bool ignoreReflectionTypeloadException) | |
{ | |
if(ignoreReflectionTypeloadException) | |
{ | |
Type[] types; | |
try | |
{ | |
types = assembly.GetTypes(); | |
} | |
catch (ReflectionTypeLoadException ex) |
static readonly Vector ANGLE_BASE_VECTOR = new Vector(1, 0); | |
/// <summary> | |
/// ベクトルの角度をDegreeで返します | |
/// </summary> | |
/// <param name="vector">ベクトル</param> | |
/// <returns>角度(Degree値)</returns> | |
public static double GetAngle(this Vector vector) | |
{ | |
return Vector.AngleBetween(ANGLE_BASE_VECTOR, vector); |
public static IEnumerable<int> BucketSort(IEnumerable<int> input) | |
{ | |
int[] bucket = new int[input.Max() + 1]; | |
foreach(var ele in input) | |
{ | |
bucket[ele]++; | |
} | |
return bucket.SelectMany((i, ele) => Enumerable.Range(0, i).Select(_ => ele)); | |
} |
static IEnumerable<Control> EnumurateAllControl(Control root) | |
{ | |
yield return root; | |
foreach (var ctrl in root.Controls.Cast<Control>().SelectMany(c => EnumurateAllControl(c))) | |
{ | |
yield return ctrl; | |
} | |
} |
static IEnumerable<System.Windows.DependencyObject> EnumurateAllElement(System.Windows.DependencyObject root) | |
{ | |
yield return root; | |
foreach (var element in GetChilren(root).SelectMany(ele => EnumurateAllElement(ele))) | |
{ | |
yield return element; | |
} | |
} | |
static IEnumerable<System.Windows.DependencyObject> GetChilren(System.Windows.DependencyObject root) |
Console.Write( | |
string.Concat( | |
Enumerable.Range(1,100).SelectMany(ele => ele.ToString() + System.Environment.NewLine)) | |
); |