public void FunctionUnderTest_ExpectedResult_UnderCondition(int[] a, int expected) { // Arrange Lesson3 sut = CreateSut(); // Act int actual = sut.Solution(a); // Assert Assert.AreEqual(expected, actual); }
public void Solution_RetrunsResult_ForLargeArray() { // Arrange int[] a = CreateLargeArray(100000); Lesson3 sut = CreateSut(); // Act int actual = sut.Solution(a); // Assert Assert.AreEqual(100000, actual); }
//GameObject.FindGameObjectWithTag("Pickup").SetActive(false); void OnGUI() { GUI.Label(new Rect(10, 10, 200, 50), "Lessons collected: " + pickCount.ToString() + " /5"); if (Lesson1.show) { Lesson1.lesson1_text(imgTexture); } if (Lesson1.plan) { Lesson1.LessonOnePlan(eighth, quarter, half, dotted_half, whole); } if (Lesson2.lesson2_show) { Lesson2.lesson2_text(imgTexture2); } if (Lesson2.lesson2_plan) { Lesson2.LessonTwoPlan(staff, treble, bass); } if (Lesson3.lesson3_show) { Lesson3.lesson3_text(imgTexture3); } if (Lesson3.lesson3_plan) { Lesson3.LessonThreePlan(A, B, C, D, E, F, G); } if (Lesson4.lesson4_show) { Lesson4.lesson4_text(imgTexture4); } if (Lesson4.lesson4_plan) { Lesson4.LessonFourPlan(clefA, clefB, clefC, clefD, clefE, clefF, clefG, clefMC); } if (Lesson5.lesson5_show) { Lesson5.lesson5_text(imgTexture5); } if (Lesson5.lesson5_plan) { Lesson5.LessonFivePlan(isecond, ithird, ifourth, ififth, isixth, iseventh, ioctave); } }
/// <summary> /// To the data contract. /// </summary> /// <param name="lesson3">The lesson3.</param> /// <returns></returns> public static Lesson3Contract ToDataContract(this Lesson3 lesson3) { var toReturn = new Lesson3Contract() { FavoriteRepaymentPlans = lesson3.FavoriteRepaymentPlans != null?lesson3.FavoriteRepaymentPlans.ToDataContract() : null, LoanTypes = lesson3.LoanTypes != null?lesson3.LoanTypes.ToDataContract() : null, User = lesson3.User.ToDataContract(LessonTypes.OwnYourStudentLoans), DefermentOptions = lesson3.DefermentOptions != null?lesson3.DefermentOptions.ToDataContract() : new DefermentContract(), FasterRepaymentOptions = lesson3.FasterRepaymentOptions != null?lesson3.FasterRepaymentOptions.ToDataContract() : new FasterRepaymentContract(), LowerPaymentOptions = lesson3.LowerPaymentOptions != null?lesson3.LowerPaymentOptions.ToDataContract() : new LowerPaymentContract() }; return(toReturn); }
static int set_array(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Lesson3 obj = (Lesson3)o; int[] arg0 = ToLua.CheckNumberArray <int>(L, 2); obj.array = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index array on a nil value")); } }
static int get_testDic(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Lesson3 obj = (Lesson3)o; System.Collections.Generic.Dictionary <int, string> ret = obj.testDic; ToLua.PushSealed(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index testDic on a nil value")); } }
static int get_array(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Lesson3 obj = (Lesson3)o; int[] ret = obj.array; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index array on a nil value")); } }
static int set_testDic(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Lesson3 obj = (Lesson3)o; System.Collections.Generic.Dictionary <int, string> arg0 = (System.Collections.Generic.Dictionary <int, string>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.Dictionary <int, string>)); obj.testDic = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index testDic on a nil value")); } }
/// <summary> /// To the domain object. /// </summary> /// <param name="lesson3">The lesson3.</param> /// <returns></returns> public static Lesson3 ToDomainObject(this Lesson3Contract lesson3) { var membershipApi = new AsaMemberAdapter(); var activeDirectoryKey = membershipApi.GetActiveDirectoryKeyFromContext(); var lesson = new Lesson3() { FavoriteRepaymentPlans = lesson3.FavoriteRepaymentPlans.ToDomainObject(), IndividualId = !string.IsNullOrWhiteSpace(activeDirectoryKey) ? new Guid(activeDirectoryKey) : Guid.Empty, LoanTypes = lesson3.LoanTypes.ToDomainObject(), DefermentOptions = lesson3.DefermentOptions.ToDomainListObject(), FasterRepaymentOptions = lesson3.FasterRepaymentOptions.ToDomainListObject(), LowerPaymentOptions = lesson3.LowerPaymentOptions.ToDomainListObject(), UserId = lesson3.User.MemberLessonId, User = lesson3.User.ToDomainObject() }; return(lesson); }
static int _CreateLesson3(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { Lesson3 obj = new Lesson3(); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Lesson3.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
void OnTriggerEnter(Collider other) { if (other.CompareTag("Pickup")) { other.gameObject.SetActive(false); pickCount += 1; PlayerMovement.MovementBool(); Lesson1.showInventory(); } else if (other.CompareTag("Pickup2")) { other.gameObject.SetActive(false); pickCount += 1; PlayerMovement.MovementBool(); Lesson2.showInventory(); } if (other.CompareTag("Pickup3")) { other.gameObject.SetActive(false); pickCount += 1; PlayerMovement.MovementBool(); Lesson3.showInventory(); } if (other.CompareTag("Pickup4")) { other.gameObject.SetActive(false); pickCount += 1; PlayerMovement.MovementBool(); Lesson4.showInventory(); } if (other.CompareTag("Pickup5")) { other.gameObject.SetActive(false); pickCount += 1; PlayerMovement.MovementBool(); Lesson5.showInventory(); } }