public void ShouldReturnInvalid_EmptyInput() { CDV_GEN cdv = new CDV_GEN(); bool isSuccess = cdv.generateCDV(""); Assert.Equal(false, isSuccess); }
public void ShouldReturnInvalid_BadLength() { CDV_GEN cdv = new CDV_GEN(); bool isSuccess = cdv.generateCDV("11773322-120380"); Assert.False(isSuccess); }
public void ShouldReturnInvalid_EmptyInput() { CDV_GEN cdv = new CDV_GEN(); cdv.generateCDV(""); Assert.Equal(expected, cdv.cdv); }
public void ShouldReturnValidCDV() { CDV_GEN cdv = new CDV_GEN(); cdv.generateCDV("11727589-03933613-15579942"); Assert.Equal(, cdv.cdv); }
public void ShouldReturnValidCDV() { CDV_GEN cdv = new CDV_GEN(); cdv.generateCDV("11773322-1203809"); Assert.Equal(5, cdv.cdv); }
public void ShouldReturnTwo() { CDV_GEN cdv = new CDV_GEN(); cdv.generateCDV("11727589-03933613-1557994"); int expected = 2; Assert.Equal(expected, cdv.cdv); }
public void ShouldReturnInvalid_Three() { CDV_GEN cdv = new CDV_GEN(); cdv.generateCDV("11773322-1203809"); int expected = 5; Assert.Equal(expected, cdv.cdv); }
public void ShouldReturnInvalid_Two() { CDV_GEN cdv = new CDV_GEN(); cdv.generateCDV("11744395-56848688-2679773"); int expected = 8; Assert.Equal(expected, cdv.cdv); }
public void ShouldReturnInvalid() { CDV_GEN cdv = new CDV_GEN(); cdv.generateCDV("11111"); int expected = cdv.cdv % 10; Assert.Equal(expected, 0); }
public void ShouldReturnEight() { CDV_GEN cdv = new CDV_GEN(); cdv.generateCDV("11773322-12038095"); int expected = 8; Assert.Equal(expected, cdv.cdv); }
public void ShouldReturnInvalid() { CDV_GEN cdv = new CDV_GEN(); cdv.generateCDV("11111"); int dividedVal = cdv.cdv % 10; Assert.NotEqual(0, dividedVal); }
public void ShouldReturnValidCDV() { CDV_GEN cdv = new CDV_GEN(); cdv.generateCDV("11727589-03933613-15579942"); int expected = cdv.cdv % 10; Assert.Equal(expected, 0); }