Ejemplo n.º 1
0
        public void Record_String()
        {
            Record newRecord = new HealthyRecord.Record(new string[] { "123", "Tom", float.Parse((37.2).ToString()).ToString(), "False", "No symptoms" });

            Assert.Equal(123, newRecord.GIN);
            Assert.Equal("Tom", newRecord.Name);
            Assert.Equal(float.Parse((37.2).ToString()), newRecord.Temperature);
            Assert.False(newRecord.RiskArea);
            Assert.Equal("No symptoms", newRecord.Symptom);
        }
Ejemplo n.º 2
0
        public void ReturnContent_Should(long GIN, string name, float temperature, bool riskArea, string symptom, string[] expectedResult)
        {
            Record newRecord = new HealthyRecord.Record(GIN, name, temperature, riskArea, symptom);

            Assert.Equal(expectedResult, newRecord.ReturnContent());
        }
Ejemplo n.º 3
0
        public void IsSuspicious_Should(long GIN, string name, float temperature, bool riskArea, string symptom, bool expectedResult)
        {
            Record newRecord = new HealthyRecord.Record(GIN, name, temperature, riskArea, symptom);

            Assert.Equal(expectedResult, newRecord.IsSuspicous());
        }