Responses for exercises in Exercism.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

47 lines
1.0 KiB

using Xunit;
using Exercism.Tests;
public class LasagnaTests
{
[Fact]
[Task(1)]
public void Expected_minutes_in_oven()
{
Assert.Equal(40, new Lasagna().ExpectedMinutesInOven());
}
[Fact]
[Task(2)]
public void Remaining_minutes_in_oven()
{
Assert.Equal(15, new Lasagna().RemainingMinutesInOven(25));
}
[Fact]
[Task(3)]
public void Preparation_time_in_minutes_for_one_layer()
{
Assert.Equal(2, new Lasagna().PreparationTimeInMinutes(1));
}
[Fact]
[Task(3)]
public void Preparation_time_in_minutes_for_multiple_layers()
{
Assert.Equal(8, new Lasagna().PreparationTimeInMinutes(4));
}
[Fact]
[Task(4)]
public void Elapsed_time_in_minutes_for_one_layer()
{
Assert.Equal(32, new Lasagna().ElapsedTimeInMinutes(1, 30));
}
[Fact]
[Task(4)]
public void Elapsed_time_in_minutes_for_multiple_layers()
{
Assert.Equal(16, new Lasagna().ElapsedTimeInMinutes(4, 8));
}
}