I hereby claim:
- I am es-repo on github.
- I am eugenes1 (https://keybase.io/eugenes1) on keybase.
- I have a public key ASBedi-IeSY75DVAptVtNaRRquM22bADwImvRj_2jUl_5Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<ItemGroup> | |
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | |
<_Parameter1>$(AssemblyName).Tests</_Parameter1> | |
</AssemblyAttribute> | |
</ItemGroup> |
public sealed record Box | |
{ | |
private readonly Dictionary<string, Thing> thingsInside; | |
public int Size { get; init; } | |
public bool IsOpen { get; private set; } | |
public Box() | |
{ |
public static class PutInsideTest | |
{ | |
public sealed record Args | |
{ | |
public Thing Thing { get; init; } = null!; | |
public string Label { get; init; } = ""; | |
} | |
sealed class TestCases : IEnumerable<object[]> | |
{ |
public sealed record Box | |
{ | |
... | |
public bool Equals(Box? other) | |
{ | |
if (other == null) | |
{ | |
return false; | |
} |
public sealed record Box | |
{ | |
... | |
public bool IsOpen { get; internal set; } | |
internal Box(Dictionary<string, Thing> thingsInside) | |
{ | |
this.thingsInside = thingsInside; | |
} | |
... |
sealed class TestCases : IEnumerable<object[]> | |
{ | |
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); | |
public IEnumerator<object[]> GetEnumerator() | |
{ | |
yield return OpenBox_ThingWithSizeLessThanAvailableSpace_UniqueLabel_ThingAddedIntoBox_TrueExpected_1(); | |
yield return ClosedBox_ThingWithSizeLessThanAvailableSpace_UniqueLabel_ThingNotAddedIntoBox_FalseExpected_2(); | |
} |
public static class PutInsideTest | |
{ | |
public sealed record Args | |
{ | |
public Thing Thing { get; init; } = null!; | |
public string Label { get; init; } = ""; | |
} | |
sealed class TestCases : IEnumerable<object[]> | |
{ |
sealed class TestCases : IEnumerable<object[]> | |
{ | |
public IEnumerator<object[]> GetEnumerator() | |
{ | |
yield return BoxAndLabelsAndThings_OpenBoxThenPutThingInsideThenCloseBoxAndWriteLogs_ThingsWithLabelEndedWithIgnoreExpected_1(); | |
} | |
static object[] BoxAndLabelsAndThings_OpenBoxThenPutThingInsideThenCloseBoxAndWriteLogs_ThingsWithLabelEndedWithIgnoreExpected_1() | |
{ | |
... |
public interface IBox | |
{ | |
int Size { get; } | |
void Open(); | |
void Close(); | |
bool PutInside(Thing thing, string label); | |
} | |
public delegate void WriteLog(string message); |