-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkTelefonoTest.cs
67 lines (55 loc) · 1.72 KB
/
checkTelefonoTest.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// This file was auto-generated based on version 1.1.0 of the canonical data.
using Xunit;
public class telefonoTest
{
[Fact]
public void numerCasa()
{
Assert.Equal("3349989823", Telefono.Check(new string[]{"05418888", "3349989823"}));
}
[Fact]
public void numerCellConPrefissoZeroZero()
{
Assert.Equal("00393349989823", Telefono.Check(new string[]{"05418888", "00393349989823", "+39123456774"}));
}
[Fact]
public void numerCellConPrefissoZeroZero1()
{
Assert.Equal("", Telefono.Check(new string[]{"05418888", "+00393349989823", "0019123456774"}));
}
[Fact]
public void numerCellConPrefissoSbagliato()
{
Assert.Equal("", Telefono.Check(new string[]{"05418888", "+00393349989823"}));
}
[Fact]
public void numerCellConPrefissoPiu()
{
Assert.Equal("+393349989823", Telefono.Check(new string[]{"05418888", "+393349989823"}));
}
[Fact]
public void Piredda1()
{
Assert.Equal("00393349989823", Telefono.Check(new string[]{"05418888", "33393123456789", "00393349989823" }));
}
[Fact]
public void Piredda2()
{
Assert.Equal("3931234567", Telefono.Check(new string[]{"05418888", "3931234567", "00393349989823" }));
}
[Fact]
public void Piredda3()
{
Assert.Equal("3931234567", Telefono.Check(new string[]{"05418888", "3931234567", "00393349989823" }));
}
[Fact]
public void Piredda4()
{
Assert.Equal("00393349989823", Telefono.Check(new string[]{"05418888", "39312 3456", "00393349989823" }));
}
[Fact]
public void Piredda5()
{
Assert.Equal("3931234567", Telefono.Check(new string[]{"", "3931234567", "00393349989823" }));
}
}