This file contains hidden or 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
public class Coordinates { | |
public int x; | |
public int y; | |
public Coordinates(int x, int y) { | |
this.x = x; | |
this.y = y; | |
} | |
} |
This file contains hidden or 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
public class PageSEO { | |
Page calculate(Page current, Search search) { | |
// ... | |
} | |
} |
This file contains hidden or 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
public interface IndexationCalculator { | |
Page update(Page current, Search search); | |
} | |
public interface CanonicalCalculator { | |
Page update(Page current, Search search); | |
} | |
public class Page { | |
public bool isIndexed; |
This file contains hidden or 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 NUnit.Framework; | |
namespace Gilded_rose.Test; | |
public class GildRoseTest | |
{ | |
private const int MinQuality = 0; | |
private const int MaxQuality = 50; | |
[Test] |
This file contains hidden or 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 NUnit.Framework; | |
using static ArgentRose.Tests.ArgentRoseStoreForTesting; | |
namespace ArgentRose.Tests; | |
public class ArgentRoseStoreTest | |
{ | |
private const int MinQuality = 0; | |
private const int MaxQuality = 50; | |
private const int SellInLastDay = 0; |
This file contains hidden or 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 NUnit.Framework; | |
using static ArgentRose.Tests.ArgentRoseStoreForTesting; | |
namespace ArgentRose.Tests; | |
public class ArgentRoseStoreTest | |
{ | |
[Test] | |
public void Regular_Product_Decreases_Quality_By_Two() | |
{ |
This file contains hidden or 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 NUnit.Framework; | |
namespace KataTirePressureVariation.Test | |
{ | |
public class AlarmTest | |
{ | |
private const double LowestSafePressure = 17; | |
private const double HighestSafePressure = 21; | |
private const double TooLowPressure = LowestSafePressure - 1; | |
private const double TooHighPressure = HighestSafePressure + 1; |
This file contains hidden or 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 NUnit.Framework; | |
using static ArgentRose.Tests.ArgentRoseStoreForTesting; | |
namespace ArgentRose.Tests; | |
public class ArgentRoseStoreTest | |
{ | |
private const int MinQuality = 0; | |
private const int MaxQuality = 50; | |
private const int SellInLastDay = 0; |