// TestAlgorandMock_DummyApps tests if created dummy apps have the correct ID
TestAlgorandMock_DummyApps tests if created dummy apps have the correct ID
// TestAlgorandMock_DummyApps tests if created dummy apps have the correct ID
func TestAlgorandMock_DummyApps(t *testing.T) {
	c := CreateAlgorandClientMock("", "")
	c.CreateDummyApps(2, 5, 8)
	assert.Equal(t, 3, len(c.Account.CreatedApps))
	assert.EqualValues(t, 2, c.Account.CreatedApps[0].Id)
	assert.EqualValues(t, 8, c.Account.CreatedApps[2].Id)
	for _, val := range c.Account.CreatedApps {
		assert.EqualValues(t, GlobalBytes, val.Params.GlobalStateSchema.NumByteSlice)
		assert.EqualValues(t, GlobalInts, val.Params.GlobalStateSchema.NumUint)
		assert.EqualValues(t, LocalBytes, val.Params.LocalStateSchema.NumByteSlice)
		assert.EqualValues(t, LocalInts, val.Params.LocalStateSchema.NumUint)
	}
}
func TestAlgorandMock_DummyApps ( t * testing . T ) { c := CreateAlgorandClientMock ( " " , " " ) c . CreateDummyApps ( 2 , 5 , 8 ) assert . Equal ( t , 3 , len ( c . Account . CreatedApps ) ) assert . EqualValues ( t , 2 , c . Account . CreatedApps [ 0 ] . Id ) assert . EqualValues ( t , 8 , c . Account . CreatedApps [ 2 ] . Id ) for _ , val := range c . Account . CreatedApps { assert . EqualValues ( t , GlobalBytes , val . Params . GlobalStateSchema . NumByteSlice ) assert . EqualValues ( t , GlobalInts , val . Params . GlobalStateSchema . NumUint ) assert . EqualValues ( t , LocalBytes , val . Params . LocalStateSchema . NumByteSlice ) assert . EqualValues ( t , LocalInts , val . Params . LocalStateSchema . NumUint ) } }
TestAlgorandMock_DummyApps tests if created dummy apps have the correct ID
TestAlgorandMock_DummyApps tests if created dummy apps have the correct ID