コード例 #1
0
		public void CalculateCaloriesPerGram_WhenCalled_ShouldReturnProperValue()
		{
			_systemUnderTest = FakeIngredientFactory.CreateIngredientWithOneShare(
				IngredientName, MacroNutrient.Carbohydrate, _ingredientRepositoryMock.Object);
			var result = _systemUnderTest.CalculateCalories(100);
			result.Should().Be(80);
		}