Lines Matching refs:AreEqual
131 … Assert.AreEqual(ByteBufferUtil.GetSizePrefix(dataBuffer) + FlatBufferConstants.SizePrefixLength, in CanCreateNewFlatBufferFromScratch()
146 Assert.AreEqual(monster.MutateMana((short)10), false); in CanCreateNewFlatBufferFromScratch()
147 Assert.AreEqual(monster.Mana, (short)150); in CanCreateNewFlatBufferFromScratch()
150 Assert.AreEqual(monster.Testarrayoftables(0).Value.Name, "Barney"); in CanCreateNewFlatBufferFromScratch()
151 Assert.AreEqual(monster.Testarrayoftables(1).Value.Name, "Frodo"); in CanCreateNewFlatBufferFromScratch()
152 Assert.AreEqual(monster.Testarrayoftables(2).Value.Name, "Wilma"); in CanCreateNewFlatBufferFromScratch()
160 Assert.AreEqual(monster.TestType, Any.Monster); in CanCreateNewFlatBufferFromScratch()
161 Assert.AreEqual(monster.MutateTestType(Any.NONE), true); in CanCreateNewFlatBufferFromScratch()
162 Assert.AreEqual(monster.TestType, Any.NONE); in CanCreateNewFlatBufferFromScratch()
163 Assert.AreEqual(monster.MutateTestType(Any.Monster), true); in CanCreateNewFlatBufferFromScratch()
164 Assert.AreEqual(monster.TestType, Any.Monster); in CanCreateNewFlatBufferFromScratch()
167 Assert.AreEqual(monster.MutateInventory(0, 1), true); in CanCreateNewFlatBufferFromScratch()
168 Assert.AreEqual(monster.MutateInventory(1, 2), true); in CanCreateNewFlatBufferFromScratch()
169 Assert.AreEqual(monster.MutateInventory(2, 3), true); in CanCreateNewFlatBufferFromScratch()
170 Assert.AreEqual(monster.MutateInventory(3, 4), true); in CanCreateNewFlatBufferFromScratch()
171 Assert.AreEqual(monster.MutateInventory(4, 5), true); in CanCreateNewFlatBufferFromScratch()
175 Assert.AreEqual(monster.Inventory(i), i + 1); in CanCreateNewFlatBufferFromScratch()
179 Assert.AreEqual(monster.MutateInventory(0, 0), true); in CanCreateNewFlatBufferFromScratch()
180 Assert.AreEqual(monster.MutateInventory(1, 1), true); in CanCreateNewFlatBufferFromScratch()
181 Assert.AreEqual(monster.MutateInventory(2, 2), true); in CanCreateNewFlatBufferFromScratch()
182 Assert.AreEqual(monster.MutateInventory(3, 3), true); in CanCreateNewFlatBufferFromScratch()
183 Assert.AreEqual(monster.MutateInventory(4, 4), true); in CanCreateNewFlatBufferFromScratch()
187 Assert.AreEqual(pos.X, 1.0f); in CanCreateNewFlatBufferFromScratch()
189 Assert.AreEqual(pos.X, 55.0f); in CanCreateNewFlatBufferFromScratch()
191 Assert.AreEqual(pos.X, 1.0f); in CanCreateNewFlatBufferFromScratch()
200 Assert.AreEqual(80, monster.Hp); in TestBuffer()
201 Assert.AreEqual(150, monster.Mana); in TestBuffer()
202 Assert.AreEqual("MyMonster", monster.Name); in TestBuffer()
205 Assert.AreEqual(1.0f, pos.X); in TestBuffer()
206 Assert.AreEqual(2.0f, pos.Y); in TestBuffer()
207 Assert.AreEqual(3.0f, pos.Z); in TestBuffer()
209 Assert.AreEqual(3.0f, pos.Test1); in TestBuffer()
210 Assert.AreEqual(Color.Green, pos.Test2); in TestBuffer()
212 Assert.AreEqual((short)5, t.A); in TestBuffer()
213 Assert.AreEqual((sbyte)6, t.B); in TestBuffer()
215 Assert.AreEqual(Any.Monster, monster.TestType); in TestBuffer()
218 Assert.AreEqual("Fred", monster2.Name); in TestBuffer()
221 Assert.AreEqual(5, monster.InventoryLength); in TestBuffer()
227 Assert.AreEqual(10, invsum); in TestBuffer()
232 Assert.AreEqual(5, inventoryArray.Length); in TestBuffer()
237 Assert.AreEqual(0, invsum); in TestBuffer()
241 Assert.AreEqual(2, monster.Test4Length); in TestBuffer()
243 Assert.AreEqual(100, test0.A + test0.B + test1.A + test1.B); in TestBuffer()
245 Assert.AreEqual(2, monster.TestarrayofstringLength); in TestBuffer()
246 Assert.AreEqual("test1", monster.Testarrayofstring(0)); in TestBuffer()
247 Assert.AreEqual("test2", monster.Testarrayofstring(1)); in TestBuffer()
249 Assert.AreEqual(true, monster.Testbool); in TestBuffer()
253 … Assert.AreEqual("MyMonster", Encoding.UTF8.GetString(nameBytes.ToArray(), 0, nameBytes.Length)); in TestBuffer()
265 …Assert.AreEqual("MyMonster", Encoding.UTF8.GetString(nameBytes.Array, nameBytes.Offset, nameBytes.… in TestBuffer()
289 Assert.AreEqual("Red", Color.Red.ToString()); in TestEnums()
290 Assert.AreEqual("Blue", Color.Blue.ToString()); in TestEnums()
291 Assert.AreEqual("NONE", Any.NONE.ToString()); in TestEnums()
292 Assert.AreEqual("Monster", Any.Monster.ToString()); in TestEnums()
329 Assert.AreEqual(nestedMonsterMana, nestedMonster.Mana); in TestNestedFlatBuffer()
330 Assert.AreEqual(nestedMonsterHp, nestedMonster.Hp); in TestNestedFlatBuffer()
331 Assert.AreEqual(nestedMonsterName, nestedMonster.Name); in TestNestedFlatBuffer()