github
2049 of 3728 branches covered (54.96%)
Branch coverage included in aggregate %.
5 of 33 new or added lines in 2 files covered. (15.15%)
1990 existing lines in 246 files now uncovered.8494 of 12829 relevant lines covered (66.21%)
100032.71 hits per line
1 |
namespace Zilon.Core.MapGenerators.RoomStyle |
|
2 |
{ |
|
3 |
public sealed class RoomMatrix |
|
4 |
{ |
|
5 |
private readonly Room[,] _rooms;
|
|
6 |
|
|
7 |
public RoomMatrix(int size) |
2✔ |
8 |
{ |
2✔ |
9 |
_rooms = new Room[size, size];
|
2✔ |
10 |
} |
2✔ |
11 |
|
|
12 |
public Room GetRoom(int x, int y) |
|
UNCOV
13
|
{ |
× |
14 |
return _rooms[x, y];
|
× |
UNCOV
15
|
} |
× |
16 |
|
|
17 |
public void SetRoom(int x, int y, Room room) |
|
18 |
{ |
50✔ |
19 |
_rooms[x, y] = room; |
50✔ |
20 |
} |
50✔ |
21 |
} |
|
22 |
} |