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
# language: ja | |
フィーチャ: 入力値によってFizzBuzzの文字列を返すことが出来る | |
(省略) | |
シナリオ: デシジョンテーブルの入力値によってFizzBuzzの文字列を返す | |
前提 以下のデシジョンテーブルによって入力値と動作を定義する | |
| 入力値 | 三の倍数 | 五の倍数 | 結果 | | |
| 3 | true | false | Fizz | | |
| 5 | false | true | Buzz | | |
| 15 | true | true | FizzBuzz | |
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
/// <summary> | |
/// ジュースの在庫情報 | |
/// </summary> | |
public class StockOfJuiceInfo | |
{ | |
/// <summary> | |
/// 値段 | |
/// </summary> | |
public int Price { get; set; } |
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; | |
namespace VenderMachine.Controllers | |
{ | |
/// <summary> | |
/// 自動販売機クラス | |
/// </summary> |
NewerOlder